Fixed apostrophe's bug

master
pecesama 2007-07-18 04:39:24 +00:00
parent 8443382cb1
commit c6321c7d34
3 changed files with 254 additions and 245 deletions

View File

@ -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}");

View File

@ -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;
}

View File

@ -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}");