plugin breaks link path
-
if path contains double dot, plugins will replace it with single dot.
for example, my path: new/../css/item.css// includes/class-bwp-minify.php // line 2673 if (false !== strpos($src, '?')) { $src = explode('?', $src); $src = $src[0]; } // here my path will be rewritten with this one // new/./css/item.css // and css will not be includeed $src = str_replace('./', '/', $src); $src = str_replace('\\', '/', $src); $src = preg_replace('#[/]+#iu', '/', $src); $src = ltrim($src, '/');may be you should rewrite line 2679 with this one
$src = str_replace('(?=[^\.])./', '/', $src);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘plugin breaks link path’ is closed to new replies.