Przeglądaj źródła

Fixed double quotes's bug

pecesama 18 lat temu
rodzic
commit
0e7b1aa3a7
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      admin/index.php

+ 2 - 1
admin/index.php Wyświetl plik

236
 							}
236
 							}
237
 							
237
 							
238
 							$date = ($isEdition) ? strtotime($post["date"]) : time();
238
 							$date = ($isEdition) ? strtotime($post["date"]) : time();
239
-							$title = ($isEdition) ? stripslashes($post["title"]) : "";
239
+							$title = ($isEdition) ? htmlentities(stripslashes($post["title"])) : "";
240
 							$body = ($isEdition) ? stripslashes($post["description"]) : "";
240
 							$body = ($isEdition) ? stripslashes($post["description"]) : "";
241
 							$url = ($isEdition) ? $post["url"] : "";
241
 							$url = ($isEdition) ? $post["url"] : "";
242
 							
242
 							
243
+							
243
 							switch ($_GET["new"]) {
244
 							switch ($_GET["new"]) {
244
 								case "post":
245
 								case "post":
245
 									$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}");
246
 									$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}");