summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul2011-12-29 16:27:43 (GMT)
committerPaul2011-12-29 16:27:43 (GMT)
commit6b8c2b38db7e9aba0fbbf68bcea2d7fc8b1cee64 (patch)
tree39afccb09ffb22d2f44277b5468b8d71bac9d20e
parent589af4fa68bb1d37fe0e946bdd38bddf543f75b4 (diff)
Issue #1299692: Null path retrieved from path redirect, leading to global flush6.x-1.x
-rw-r--r--expire.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/expire.module b/expire.module
index 83f5705..d3d5f51 100644
--- a/expire.module
+++ b/expire.module
@@ -432,7 +432,9 @@ function expire_cache_derivative($paths, &$node = NULL) {
$path_redirects = expire_path_redirect_load(array('redirect' => $path));
if (isset($path_redirects)) {
foreach ($path_redirects as $path_redirect) {
- $expire[] = $path_redirect['path'];
+ if (!empty($path_redirect['redirect'])) {
+ $expire[] = $path_redirect['redirect'];
+ }
}
}
}