From 0e7b1aa3a74491c1e46b07e69baaf8aeba0cc759 Mon Sep 17 00:00:00 2001 From: pecesama Date: Wed, 18 Jul 2007 05:02:34 +0000 Subject: [PATCH] Fixed double quotes's bug --- admin/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index fe5e848..b9ed65b 100644 --- a/admin/index.php +++ b/admin/index.php @@ -236,10 +236,11 @@ if ($user->isAdmin()) { } $date = ($isEdition) ? strtotime($post["date"]) : time(); - $title = ($isEdition) ? stripslashes($post["title"]) : ""; + $title = ($isEdition) ? htmlentities(stripslashes($post["title"])) : ""; $body = ($isEdition) ? stripslashes($post["description"]) : ""; $url = ($isEdition) ? $post["url"] : ""; + switch ($_GET["new"]) { case "post": $input = array("{type}", "{date}", "{id_user}", "{editTitle}", "{editBody}");