1
0
mirror of https://github.com/shuchkin/simplexlsxgen.git synced 2023-08-10 21:12:59 +03:00

Add strict compare

This commit is contained in:
Fredrik Sundin 2020-08-19 22:48:12 +00:00
parent 291b508143
commit 22cbd84f3c

View File

@ -214,7 +214,7 @@ class SimpleXLSXGen {
$ct = 's'; // shared string
$v = str_replace(['&','<','>'],['&amp;','&lt;','&gt;'], $v);
$cv = false;
if ( isset($SI_KEYS[$v]) ) {
if ( isset($SI_KEYS[$v]) && $SI_KEYS[$v] === $v ) {
$cv = $SI_KEYS[$v];
}