Changeset 1765
- Timestamp:
- 03/12/2011 01:55:20 PM (2 years ago)
- Location:
- branches/1.3.1
- Files:
-
- 2 modified
-
lang/en/en.inc.php (modified) (1 diff)
-
libs/Wakka.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3.1/lang/en/en.inc.php
r1763 r1765 1052 1052 if(!defined('EDIT_NOTE')) define('EDIT_NOTE', 'Edit note:'); 1053 1053 if(!defined('ERROR_ACL_READ')) define('ERROR_ACL_READ', 'You are not allowed to read the source of this page.'); 1054 if(!defined('ERROR_INVALID_PAGENAME')) define('ERROR_INVALID_PAGENAME', 'This page name is invalid. Valid page names must not contain the characters | ? = < > / \' " % or &.');1054 if(!defined('ERROR_INVALID_PAGENAME')) define('ERROR_INVALID_PAGENAME', 'This page name is invalid. Valid page names must not contain the characters: [ ] { } % + | ? = < > \' " / #x00-#x1f #x7f or ,'); 1055 1055 if(!defined('ERROR_PAGE_ALREADY_EXIST')) define('ERROR_PAGE_ALREADY_EXIST', 'Sorry, the destination page already exists'); 1056 1056 if(!defined('ERROR_PAGE_NOT_EXIST')) define('ERROR_PAGE_NOT_EXIST', ' Sorry, page %s does not exist.'); -
branches/1.3.1/libs/Wakka.class.php
r1763 r1765 2426 2426 * Check if a given string contains prohibited characters. 2427 2427 * Currently, these prohibited characters are: 2428 * | ? = < > ' " &2428 * [ ] { } % + | ? = < > ' " / 0x00-0x1f 0x7f , 2429 2429 * 2430 2430 * @param string $text mandatory: … … 2435 2435 function IsWikiName($text) 2436 2436 { 2437 $result = preg_match("/[\ |\?=<>\'\"&\/%]/", $text);2437 $result = preg_match("/[\[\]\{\}%\+\|\?=<>\'\"\/\\x00-\\x1f\\x7f,]/", html_entity_decode($text)); 2438 2438 return !$result; 2439 2439 }