Преглед на файлове

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