瀏覽代碼

AddSalsh tag

stany.ferer 1 年之前
父節點
當前提交
00833b828e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;