Skip to content

Commit

Permalink
Should call preg_split() first (bug fix).
Browse files Browse the repository at this point in the history
  • Loading branch information
JasWSInc committed Jun 14, 2014
1 parent ac92fb0 commit eb94771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quick-cache-pro/quick-cache-pro.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ public function auto_purge_xml_sitemaps_cache()
$pattern = preg_quote($pattern, '/'); // Escape.
return preg_replace('/\\\\\*/', '.*?', $pattern); // Wildcards.

}, $this->options['cache_purge_xml_sitemap_patterns'])).')';
}, preg_split('/['."\r\n".']+/', $this->options['cache_purge_xml_sitemap_patterns'], NULL, PREG_SPLIT_NO_EMPTY))).')';
$cache_path_no_scheme_quv_ext = $this->url_to_cache_path(home_url('/'), '', '', $this::CACHE_PATH_NO_SCHEME | $this::CACHE_PATH_NO_PATH_INDEX | $this::CACHE_PATH_NO_QUV | $this::CACHE_PATH_NO_EXT);
$regex = '/^'.preg_quote($cache_dir, '/'). // Consider all schemes; all path paginations; and all possible variations.
'\/[^\/]+\/'.preg_quote($cache_path_no_scheme_quv_ext, '/').
Expand Down

0 comments on commit eb94771

Please sign in to comment.