From 03def6f6fb3a245beb58647692c1fbeb6c97c047 Mon Sep 17 00:00:00 2001 From: pecesama Date: Thu, 13 Sep 2007 04:40:00 +0000 Subject: [PATCH] Finished the removing of the old permalinks styles; sanitize RSS feed --- classes/pagination.class.php | 8 +++++--- rss.php | 9 ++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/classes/pagination.class.php b/classes/pagination.class.php index d5b481a..2b7ba5c 100644 --- a/classes/pagination.class.php +++ b/classes/pagination.class.php @@ -75,13 +75,15 @@ Author URI: http://www.mis-algoritmos.com echo "
className\">$this->pagination
"; } function get_pagenum_link($id){ - if(strpos($this->target,'?')===false) + //if(strpos($this->target,'?')===false) if($this->urlF) return str_replace($this->urlF,$id,$this->target); + else return "$this->target?$this->parameterName=$id"; - else - return "$this->target&$this->parameterName=$id"; + //else + //return "$this->target&$this->parameterName=$id"; + } function calculate(){ diff --git a/rss.php b/rss.php index 952940f..ee37ce6 100644 --- a/rss.php +++ b/rss.php @@ -79,15 +79,18 @@ $desc = $tumble->getMp3Player($register["url"]); break; } - $url = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php/post/").$register["id_post"]."/"; - $formatedDate = gmdate("D, d M Y H:i:s \G\M\T", strtotime($register["date"])); + $tit = htmlspecialchars($tit); + $url = htmlspecialchars($url); + $strEnd=($conf->urlFriendly) ? "/" : ""; + $url = $conf->urlGelato.($conf->urlFriendly?"/post/":"/index.php?post=").$register["id_post"].$strEnd; + $formatedDate = date("r", strtotime($register["date"])+transform_offset($conf->offsetTime)); ?> <?php echo $tit;?> ]]> - urlGelato."/index.php/post/".$register["id_post"]."/";?> +