Fixed double quotes's bug
parent
c6321c7d34
commit
0e7b1aa3a7
|
|
@ -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}");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue