Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3120,8 +3120,10 @@ |
3121 | 3121 | |
3122 | 3122 | # Context links: [[|name]] and [[name (context)|]] |
3123 | 3123 | # |
3124 | | - $tc = "[&;%\\-,.\\(\\)' _0-9A-Za-z\\/:\\x80-\\xff]"; |
3125 | | - $np = "[&;%\\-,.' _0-9A-Za-z\\/:\\x80-\\xff]"; # No parens |
| 3124 | + global $wgLegalTitleChars; |
| 3125 | + $tc = "[$wgLegalTitleChars]"; |
| 3126 | + $np = str_replace( array( '(', ')' ), array( '', '' ), $tc ); # No parens |
| 3127 | + |
3126 | 3128 | $namespacechar = '[ _0-9A-Za-z\x80-\xff]'; # Namespaces can use non-ascii! |
3127 | 3129 | $conpat = "/^({$np}+) \\(({$tc}+)\\)$/"; |
3128 | 3130 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -297,6 +297,7 @@ |
298 | 298 | * (bug 4167) Fix regression caused by patch for bug 153 |
299 | 299 | * (bug 1850) Additional fixes so existing local and remote images |
300 | 300 | get a blue link even if there's no local description page |
| 301 | +* (bug 4169) Use $wgLegalTitleChars in pipe trick conversions |
301 | 302 | |
302 | 303 | |
303 | 304 | === Caveats === |