Changeset 1765

Show
Ignore:
Timestamp:
03/12/2011 01:55:20 PM (2 years ago)
Author:
BrianKoontz
Message:

The following characters are not permitted as part of usernames or
pagenames:
[ ] { } % + | ? = < > ' " / 0x00-0x1f 0x7f ,
Refs #191, #843

Location:
branches/1.3.1
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.3.1/lang/en/en.inc.php

    r1763 r1765  
    10521052if(!defined('EDIT_NOTE')) define('EDIT_NOTE', 'Edit note:'); 
    10531053if(!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 | ? = &lt; &gt; / \' " % or &amp;.'); 
     1054if(!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 ,'); 
    10551055if(!defined('ERROR_PAGE_ALREADY_EXIST')) define('ERROR_PAGE_ALREADY_EXIST', 'Sorry, the destination page already exists'); 
    10561056if(!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  
    24262426         * Check if a given string contains prohibited characters. 
    24272427         * Currently, these prohibited characters are: 
    2428          *   | ? = < > ' " & 
     2428         *   [ ] { } % + | ? = < > ' " / 0x00-0x1f 0x7f , 
    24292429         * 
    24302430         * @param       string $text mandatory: 
     
    24352435        function IsWikiName($text) 
    24362436        { 
    2437                 $result = preg_match("/[\|\?=<>\'\"&\/%]/", $text); 
     2437                $result = preg_match("/[\[\]\{\}%\+\|\?=<>\'\"\/\\x00-\\x1f\\x7f,]/", html_entity_decode($text)); 
    24382438                return !$result; 
    24392439        }