mirror of
https://github.com/mrclay/minify.git
synced 2025-08-14 01:54:11 +02:00
Fixes #693
This commit is contained in:
@@ -471,7 +471,7 @@ class Minify
|
|||||||
*/
|
*/
|
||||||
public function errorExit($header, $url = '', $msgHtml = '')
|
public function errorExit($header, $url = '', $msgHtml = '')
|
||||||
{
|
{
|
||||||
$url = htmlspecialchars($url, ENT_QUOTES);
|
$url = htmlspecialchars($url);
|
||||||
list(, $h1) = explode(' ', $header, 2);
|
list(, $h1) = explode(' ', $header, 2);
|
||||||
$h1 = htmlspecialchars($h1);
|
$h1 = htmlspecialchars($h1);
|
||||||
// FastCGI environments require 3rd arg to header() to be set
|
// FastCGI environments require 3rd arg to header() to be set
|
||||||
|
@@ -52,7 +52,7 @@ class Minify_HTML_Helper
|
|||||||
}
|
}
|
||||||
$uri = $h->getRawUri($opts['farExpires'], $opts['debug']);
|
$uri = $h->getRawUri($opts['farExpires'], $opts['debug']);
|
||||||
|
|
||||||
return htmlspecialchars($uri, ENT_QUOTES, $opts['charset']);
|
return htmlspecialchars($uri, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, $opts['charset']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user