• R/O
  • SSH
  • HTTPS

amb: Commit


Commit MetaInfo

Revision218 (tree)
Time2022-02-18 23:40:27
Authormateuszviste

Log Message

characters with special html meaning are properly escaped

Change Summary

Incremental Difference

--- phpamb/trunk/README (revision 217)
+++ phpamb/trunk/README (revision 218)
@@ -9,6 +9,9 @@
99
1010 === HISTORY ==================================================================
1111
12+ver 20220218:
13+ - characters with special html meaning are properly escaped
14+
1215 ver 20220212:
1316 - fname can point to a directory instead of an amb file
1417 - when no unicode.map file is present, utf-8 encoding is assumed
--- phpamb/trunk/phpamb.php (revision 217)
+++ phpamb/trunk/phpamb.php (revision 218)
@@ -24,7 +24,7 @@
2424 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2525 // SOFTWARE.
2626
27-$VERSION = "20220212";
27+$VERSION = "20220218";
2828
2929 function getamafile($ambfname, $amafname) {
3030 if (! is_file($ambfname)) {
@@ -181,7 +181,7 @@
181181 if ($unicodemap !== FALSE) {
182182 $out .= $unicodemap[ord($c)]; // convert characters into HTML unicode codes
183183 } else {
184- $out .= $c;
184+ $out .= htmlspecialchars($c);
185185 }
186186 }
187187 }
Show on old repository browser