Skip to content
Snippets Groups Projects
Commit 15ae43bc authored by Borek Bernard's avatar Borek Bernard
Browse files

Colon is no longer rewritten to semicolon for IIS 7.x and for older versions...

Colon is no longer rewritten to semicolon for IIS 7.x and for older versions of IIS, semicolon is displayed as is, not URL-encoded.
parent 361171a4
No related branches found
No related tags found
No related merge requests found
......@@ -323,12 +323,14 @@ function idfilter($id,$ue=true){
if ($conf['useslash'] && $conf['userewrite']){
$id = strtr($id,':','/');
}elseif (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' &&
$conf['userewrite']) {
$conf['userewrite'] &&
strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/7.') === false) {
$id = strtr($id,':',';');
}
if($ue){
$id = rawurlencode($id);
$id = str_replace('%3A',':',$id); //keep as colon
$id = str_replace('%3B',';',$id); //keep as semicolon
$id = str_replace('%2F','/',$id); //keep as slash
}
return $id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment