Ver código fonte

html转义问题

萤火科技 4 anos atrás
pai
commit
68a6db3457
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/common.php

+ 1 - 1
app/common.php

@@ -363,7 +363,7 @@ function my_trim($str)
  */
 function my_htmlspecialchars($string)
 {
-    return is_string($string) ? htmlspecialchars($string) : $string;
+    return is_string($string) ? htmlspecialchars($string, ENT_COMPAT) : $string;
 }
 
 /**