浏览代码

Change htmlentities with htmlspecialchars

vbracco 18 年前
父节点
当前提交
70f4e5eda2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      admin/index.php

+ 1 - 1
admin/index.php 查看文件

@@ -237,7 +237,7 @@ if ($user->isAdmin()) {
237 237
 							}
238 238
 							
239 239
 							$date = ($isEdition) ? strtotime($post["date"]) : time();
240
-							$title = ($isEdition) ? htmlentities(stripslashes($post["title"])) : "";
240
+							$title = ($isEdition) ? htmlspecialchars(stripslashes($post["title"])) : "";
241 241
 							$body = ($isEdition) ? stripslashes($post["description"]) : "";
242 242
 							$url = ($isEdition) ? $post["url"] : "";
243 243