Browse Source

Merge pull request #12719 from bancer/patch-5

Fix invalid value of htmlspecialchars argument
Mark Story 7 years ago
parent
commit
4da56e3998
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Core/functions.php

+ 1 - 0
src/Core/functions.php

@@ -69,6 +69,7 @@ if (!function_exists('h')) {
                 'Use the 3rd argument instead.'
             );
             $charset = $double;
+            $double = true;
         }
 
         return htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, $charset ?: $defaultCharset, $double);