Revision | 218 (tree) |
---|---|
Time | 2022-02-18 23:40:27 |
Author | mateuszviste |
characters with special html meaning are properly escaped
@@ -9,6 +9,9 @@ | ||
9 | 9 | |
10 | 10 | === HISTORY ================================================================== |
11 | 11 | |
12 | +ver 20220218: | |
13 | + - characters with special html meaning are properly escaped | |
14 | + | |
12 | 15 | ver 20220212: |
13 | 16 | - fname can point to a directory instead of an amb file |
14 | 17 | - when no unicode.map file is present, utf-8 encoding is assumed |
@@ -24,7 +24,7 @@ | ||
24 | 24 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
25 | 25 | // SOFTWARE. |
26 | 26 | |
27 | -$VERSION = "20220212"; | |
27 | +$VERSION = "20220218"; | |
28 | 28 | |
29 | 29 | function getamafile($ambfname, $amafname) { |
30 | 30 | if (! is_file($ambfname)) { |
@@ -181,7 +181,7 @@ | ||
181 | 181 | if ($unicodemap !== FALSE) { |
182 | 182 | $out .= $unicodemap[ord($c)]; // convert characters into HTML unicode codes |
183 | 183 | } else { |
184 | - $out .= $c; | |
184 | + $out .= htmlspecialchars($c); | |
185 | 185 | } |
186 | 186 | } |
187 | 187 | } |