dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
url-encode the url
[lhc/web/wiklou.git]
/
redirect.php
diff --git
a/redirect.php
b/redirect.php
index
2f50814
..
f84d882
100644
(file)
--- a/
redirect.php
+++ b/
redirect.php
@@
-12,7
+12,7
@@
$wgRequest = new WebRequest();
$page = $wgRequest->getVal( "wpDropdown" );
-$url = str_replace( "$1",
$page
, $wgArticlePath );
+$url = str_replace( "$1",
urlencode( $page )
, $wgArticlePath );
header( "Location: {$url}" );
?>