Fixed double quotes's bug

master
pecesama 2007-07-18 05:02:34 +00:00
parent c6321c7d34
commit 0e7b1aa3a7
1 changed files with 2 additions and 1 deletions

View File

@ -236,10 +236,11 @@ if ($user->isAdmin()) {
} }
$date = ($isEdition) ? strtotime($post["date"]) : time(); $date = ($isEdition) ? strtotime($post["date"]) : time();
$title = ($isEdition) ? stripslashes($post["title"]) : ""; $title = ($isEdition) ? htmlentities(stripslashes($post["title"])) : "";
$body = ($isEdition) ? stripslashes($post["description"]) : ""; $body = ($isEdition) ? stripslashes($post["description"]) : "";
$url = ($isEdition) ? $post["url"] : ""; $url = ($isEdition) ? $post["url"] : "";
switch ($_GET["new"]) { switch ($_GET["new"]) {
case "post": case "post":
$input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}"); $input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}");