summaryrefslogtreecommitdiff
path: root/inc/media.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-01-27 21:45:06 +0100
committerAndreas Gohr <andi@splitbrain.org>2009-01-27 21:45:06 +0100
commitaf2408d59bbe5e59c6c6b3a8125e6b512a887663 (patch)
tree1158561ea774a70b1b1038110bc03bec68e2338f /inc/media.php
parenta64eec16d2d0bb6f36960279324ff4c67887bfbb (diff)
downloadrpg-af2408d59bbe5e59c6c6b3a8125e6b512a887663.tar.gz
rpg-af2408d59bbe5e59c6c6b3a8125e6b512a887663.tar.bz2
Work around IIS bug for redirects FS#1576
Ignore-this: 37b33f575e4c0b31e4af93185bf74f0f When IIS is running PHP in CGI mode it will not send cookie headers on 302 redirections. This is a known bug (KB176113). This patch will detect affected servers. Instead of a 302 redirect a Refresh: header is issued. This is supported by all known browsers should have the same effect as a real redirect. darcs-hash:20090127204506-7ad00-ce474f3b0db003e86e09d5e9a9bd7c96887ac01c.gz
Diffstat (limited to 'inc/media.php')
-rw-r--r--inc/media.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/media.php b/inc/media.php
index 37f73208c..c932a07d4 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -201,9 +201,8 @@ function media_delete($id,$auth){
if($data['unl'] && $data['del']){
// current namespace was removed. redirecting to root ns passing msg along
- header('Location: '.DOKU_URL.'lib/exe/mediamanager.php?msg1='.
+ send_redirect(DOKU_URL.'lib/exe/mediamanager.php?msg1='.
rawurlencode(sprintf(noNS($id),$lang['deletesucc'])));
- exit;
}
return $data['unl'];