โŒˆโŒ‹ โŽ‡ branch:  freshcode


Check-in [86d56847bc]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add extra Unicode backtick to allowed input::_text filter.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 86d56847bc07b9c6f67b9f65e51fb174617570d6
User & Date: mario 2015-01-08 15:56:19
Context
2015-01-08
17:57
Friendlier placeholder page in case of SQLite locks / running update scripts. check-in: 6676cf4af8 user: mario tags: trunk
15:56
Add extra Unicode backtick to allowed input::_text filter. check-in: 86d56847bc user: mario tags: trunk
15:55
Make tag/ pages and search results NOINDEX for spiders. check-in: 1820232a81 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/input.php.

239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
    /**
     * [w]
     * Human-readable text with many special/interpunction characters:
     *  " and ' allowed, but no <, > or \
     *
     */
    function _text($data) {
        return preg_replace("/[^\w\d\s,._\-+?!;:\"\'\/`ยด()*=#@]+/u", " ", strip_tags($data));
    }
    
    /**
     * Acceptable filename characters.
     *
     * Alphanumerics and dot (but not as first character).
     * You should use `->basename` as primary filter anyway.







|







239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
    /**
     * [w]
     * Human-readable text with many special/interpunction characters:
     *  " and ' allowed, but no <, > or \
     *
     */
    function _text($data) {
        return preg_replace("/[^\w\d\s,._\-+?!;:\"\'\/`โ€˜ยด()*=#@]+/u", " ", strip_tags($data));
    }
    
    /**
     * Acceptable filename characters.
     *
     * Alphanumerics and dot (but not as first character).
     * You should use `->basename` as primary filter anyway.