mirror of
https://github.com/mrclay/minify.git
synced 2025-08-07 22:56:33 +02:00
about:blank check with regex
This commit is contained in:
@@ -284,7 +284,7 @@ class Minify_CSS_UriRewriter {
|
|||||||
}
|
}
|
||||||
// analyze URI
|
// analyze URI
|
||||||
if ('/' !== $uri[0] // root-relative
|
if ('/' !== $uri[0] // root-relative
|
||||||
&& 0 !== strpos($uri, 'about:blank') //about:blank
|
&& !preg_match('~about\:blank(#.*)?$~', $uri) //about:blank
|
||||||
&& false === strpos($uri, '//') // protocol (non-data)
|
&& false === strpos($uri, '//') // protocol (non-data)
|
||||||
&& 0 !== strpos($uri, 'data:') // data protocol
|
&& 0 !== strpos($uri, 'data:') // data protocol
|
||||||
) {
|
) {
|
||||||
|
Reference in New Issue
Block a user