summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew morton2008-10-08 01:34:12 (GMT)
committer andrew morton2008-10-08 01:34:12 (GMT)
commit4f03d1f45ec717d06d0c81bf2ae72fcb1016e2b6 (patch)
tree6fc476e4213f6d9849ba2c89f17bdb260f581ce5
parenta23a1b48bc1cdcb67ec016844402d7876e0beae9 (diff)
#316397 by stella, $_SERVER['REQUEST_URI'] does not work on all platforms.
-rw-r--r--imagecache.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/imagecache.module b/imagecache.module
index 19c25d0..e2b093a 100644
--- a/imagecache.module
+++ b/imagecache.module
@@ -376,7 +376,7 @@ function _imagecache_cache($presetname, $path) {
if (file_exists($lockfile)) {
watchdog('imagecache', 'ImageCache already generating: %dst, Lock file: %tmp.', array('%dst' => $dst, '%tmp' => $lockfile), WATCHDOG_NOTICE);
// 307 Temporary Redirect, to myself. Lets hope the image is done next time around.
- header('Location: '. $_SERVER['REQUEST_URI'], TRUE, 307);
+ header('Location: '. request_uri(), TRUE, 307);
exit;
}
touch($lockfile);