Fixed apostrophe's bug
parent
8443382cb1
commit
c6321c7d34
|
|
@ -236,8 +236,8 @@ if ($user->isAdmin()) {
|
|||
}
|
||||
|
||||
$date = ($isEdition) ? strtotime($post["date"]) : time();
|
||||
$title = ($isEdition) ? $post["title"] : "";
|
||||
$body = ($isEdition) ? $post["description"] : "";
|
||||
$title = ($isEdition) ? stripslashes($post["title"]) : "";
|
||||
$body = ($isEdition) ? stripslashes($post["description"]) : "";
|
||||
$url = ($isEdition) ? $post["url"] : "";
|
||||
|
||||
switch ($_GET["new"]) {
|
||||
|
|
@ -347,6 +347,9 @@ if ($user->isAdmin()) {
|
|||
$textile = new Textile;
|
||||
$register["description"] = $textile->process($register["description"]);
|
||||
|
||||
$register["title"] = stripslashes($register["title"]);
|
||||
$register["description"] = stripslashes($register["description"]);
|
||||
|
||||
switch ($tumble->getType($register["id_post"])) {
|
||||
case "1":
|
||||
$input = array("{Id_Post}", "{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
$f = fsockopen($data['host'], ($data['port']) ? $data['port'] : 80, $e1, $e2, 3);
|
||||
$f = @fsockopen($data['host'], ($data['port']) ? $data['port'] : 80, $e1, $e2, 3);
|
||||
if (!$f) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,6 +103,9 @@
|
|||
$textile = new Textile;
|
||||
$register["description"] = $textile->process($register["description"]);
|
||||
|
||||
$register["title"] = stripslashes($register["title"]);
|
||||
$register["description"] = stripslashes($register["description"]);
|
||||
|
||||
switch ($tumble->getType($register["id_post"])) {
|
||||
case "1":
|
||||
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
||||
|
|
@ -190,6 +193,9 @@
|
|||
$textile = new Textile;
|
||||
$register["description"] = $textile->process($register["description"]);
|
||||
|
||||
$register["title"] = stripslashes($register["title"]);
|
||||
$register["description"] = stripslashes($register["description"]);
|
||||
|
||||
switch ($tumble->getType($register["id_post"])) {
|
||||
case "1":
|
||||
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
||||
|
|
|
|||
Loading…
Reference in New Issue