chuweiqiang 1 year ago
parent
commit
52e4306cbd
2 changed files with 3 additions and 3 deletions
  1. 1 3
      .idea/workspace.xml
  2. 2 0
      application/api/controller/Forum.php

+ 1 - 3
.idea/workspace.xml

@@ -4,8 +4,6 @@
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/api/controller/Forum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Forum.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/log/single.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single.log" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/log/single_sql.log" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/log/single_sql.log" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -572,7 +570,7 @@
       <workItem from="1710808231575" duration="7017000" />
       <workItem from="1710817453185" duration="16334000" />
       <workItem from="1710896140284" duration="18662000" />
-      <workItem from="1710981036861" duration="1219000" />
+      <workItem from="1710981036861" duration="1459000" />
     </task>
     <servers />
   </component>

+ 2 - 0
application/api/controller/Forum.php

@@ -1712,9 +1712,11 @@ class Forum extends Base
             if($v['reply_id']) {
                 $v['is_normal'] = CheckPower::checkModulesPower($v['reply_id'], 0, 'reply');
                 $v['show_title'] = ForumReply::where('id',$v['reply_id'])->value('content');
+                $v['show_title'] = strip_tags($v['show_title']);
             }else{
                 $v['is_normal'] = CheckPower::checkModulesPower($v['forum_id'], 0, $this->request->controller());
                 $v['show_title'] = UserForum::where('id',$v['forum_id'])->value('content');
+                $v['show_title'] = strip_tags($v['show_title']);
             }
         });
         $total_num =  PlatformLike::where([['l.user_id','=',$this->user_id],['l.type','=',8]])->alias('l')