Mercurial > hg > mgallery
comparison mgallery.php @ 240:dee1a11e71e9
Use htmlspecialchars() instead of htmlentities().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 28 Mar 2018 13:24:53 +0300 |
parents | 2749d9637a44 |
children | c649933173f8 |
comparison
equal
deleted
inserted
replaced
239:2749d9637a44 | 240:dee1a11e71e9 |
---|---|
97 } | 97 } |
98 | 98 |
99 | 99 |
100 function chentities($str) | 100 function chentities($str) |
101 { | 101 { |
102 return htmlentities($str, ENT_NOQUOTES, "UTF-8"); | 102 return htmlspecialchars($str, ENT_NOQUOTES, "UTF-8"); |
103 } | 103 } |
104 | 104 |
105 | 105 |
106 function dhentities($str) | 106 function dhentities($str) |
107 { | 107 { |
108 return htmlentities($str, ENT_COMPAT, "UTF-8"); | 108 return htmlspecialchars($str, ENT_COMPAT, "UTF-8"); |
109 } | 109 } |
110 | 110 |
111 | 111 |
112 function mgGetTrans($val, $filter = NULL) | 112 function mgGetTrans($val, $filter = NULL) |
113 { | 113 { |