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


Check-in [86d56847bc]

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

Overview
SHA1:86d56847bc07b9c6f67b9f65e51fb174617570d6
Date: 2015-01-08 15:56:19
User: mario
Comment:Add extra Unicode backtick to allowed input::_text filter.
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2015-01-08
17:57
[6676cf4af8] Friendlier placeholder page in case of SQLite locks / running update scripts. (user: mario, tags: trunk)
15:56
[86d56847bc] Add extra Unicode backtick to allowed input::_text filter. (user: mario, tags: trunk)
15:55
[1820232a81] Make tag/ pages and search results NOINDEX for spiders. (user: mario, tags: trunk)
Changes

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.