Skip to content

Commit

Permalink
Fixes #693
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclay committed Jan 4, 2024
1 parent 6166d3b commit 43fb768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Minify.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public function combine($sources, $options = array())
*/
public function errorExit($header, $url = '', $msgHtml = '')
{
$url = htmlspecialchars($url, ENT_QUOTES);
$url = htmlspecialchars($url);
list(, $h1) = explode(' ', $header, 2);
$h1 = htmlspecialchars($h1);
// FastCGI environments require 3rd arg to header() to be set
Expand Down
2 changes: 1 addition & 1 deletion lib/Minify/HTML/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function getUri($keyOrFiles, $opts = array())
}
$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']);
}

/**
Expand Down

0 comments on commit 43fb768

Please sign in to comment.