Changeset 2593340
- Timestamp:
- 09/03/2021 05:15:43 PM (4 years ago)
- File:
-
- 1 edited
-
keydatas/trunk/keydatas.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
keydatas/trunk/keydatas.php
r2593016 r2593340 70 70 if (empty($title)) { 71 71 keydatas_failRsp(1404, "title is empty", "标题不能为空"); 72 }else{ 73 $title=htmlspecialchars_decode($title); 74 } 72 } 75 73 76 74 $content =wp_kses_post($_POST["post_content"]); 77 75 if (empty($content)) { 78 76 $content=''; 79 }else{80 $content = htmlspecialchars_decode($content);81 77 } 82 78 … … 85 81 if (empty($excerpt)) { 86 82 $excerpt=''; 87 }else{88 $excerpt=htmlspecialchars_decode($excerpt);89 83 } 90 84 //文章类型 … … 175 169 $author = sanitize_text_field($_POST["post_author"]); 176 170 if (!empty($author)) { 177 $author = htmlspecialchars_decode($author);171 //$author = htmlspecialchars_decode($author); 178 172 if($author == "rand_users"){ 179 173 $randNum=keydatas_randFloat();
Note: See TracChangeset
for help on using the changeset viewer.