dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d605087
)
Add comment on urlencoding fragments
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 5 Jan 2009 15:59:17 +0000
(15:59 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 5 Jan 2009 15:59:17 +0000
(15:59 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
95b2e51
..
9fd4c79
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-452,6
+452,10
@@
class Title {
*/
static function escapeFragmentForURL( $fragment ) {
global $wgEnforceHtmlIds;
+ # Note that we don't urlencode the fragment. urlencoded Unicode
+ # fragments appear not to work in IE (at least up to 7) or in at least
+ # one version of Opera 9.x. The W3C validator, for one, doesn't seem
+ # to care if they aren't encoded.
return Sanitizer::escapeId( $fragment,
$wgEnforceHtmlIds ? array() : 'xml' );
}