1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-14 10:05:59 +02:00
This commit is contained in:
Steve Clay
2024-01-04 01:29:02 -05:00
parent 6166d3b785
commit 43fb768c13
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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']);
} }
/** /**