Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Assert valid types in fetch_category_title() #86

@ghost

Description

From r.wetzlmayr on October 17, 2010 11:46:40

fetch_category_title() accepts anything for $type, even an empty string ( https://code.google.com/p/textpattern/source/browse/releases/4.2.0/source/textpattern/lib/txplib_misc.php#1628 ).

We could have caught [ r3429 ] earlier if fetch_category_title() was less forgiving.

Might use either a constant array of valid types or a set from the txp_category table.

Original issue: http://code.google.com/p/textpattern/issues/detail?id=82

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions