Ver Fonte

AddSalsh tag

stany.ferer há 1 ano atrás
pai
commit
00833b828e
1 ficheiros alterados com 1 adições e 1 exclusões
  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;