Commit 501bccb3 authored by Spleshka's avatar Spleshka Committed by bgm

Issue #2027625: hook_expire_cache(): fix strpos() check for the base_url.

parent aabba564
......@@ -379,7 +379,9 @@ function boost_expire_cache($urls) {
foreach ($urls as $url) {
// Check if the URL to be flushed matches our base URL
if (strpos($base_root, $url) == 0) {
// base_root: http://www.example.org
// url: http://www.example.org/node/123
if (strpos($url, $base_root) === 0) {
$boost = boost_transform_url($url);
// We need the extention for the filename
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment