Răsfoiți Sursa

AddSalsh tag

stany.ferer 1 an în urmă
părinte
comite
00833b828e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      core/class/tags.class.php

+ 1 - 1
core/class/tags.class.php

@@ -62,7 +62,7 @@ class tags
     public static function getJquery(float $_idTag = NULL) {
         $tmp = "[";
         foreach (self::getAll($_idTag) as $tags) {
-            $tmp .= "'".$tags["label"]."', ";
+            $tmp .= "'".addslashes($tags["label"])."', ";
         }
         $tmp .= "]";
         return $tmp;