summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);