소스 검색

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;