diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-11-18 20:24:34 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-11-18 20:24:34 +0100 |
commit | fea16134dac4e09977d36c902f692379d07a3e96 (patch) | |
tree | 13b02b0273b71df59e9051b19a1436615da8fe56 | |
parent | 3755fc25fd2934f8d887f713a48b342ef252cfee (diff) | |
parent | 15ae43bc55fffc8a9ccbf8215883532daf0d4a82 (diff) | |
download | rpg-fea16134dac4e09977d36c902f692379d07a3e96.tar.gz rpg-fea16134dac4e09977d36c902f692379d07a3e96.tar.bz2 |
Merge branch 'master' of git://github.com/borekb/dokuwiki into pull-request-84
* 'master' of git://github.com/borekb/dokuwiki:
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.
Conflicts:
inc/common.php
-rw-r--r-- | inc/common.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 20baed6c0..3c40a47dc 100644 --- a/inc/common.php +++ b/inc/common.php @@ -320,13 +320,15 @@ 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') === 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; |