From 044bf638a89a4b5718340500d844e5b7eb4a5df2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 12 Feb 2014 19:58:49 +0100 Subject: [PATCH] bug fix #364 - RSS Feed URL problem with + sign --- inc/poche/Poche.class.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 77361ef7..7e3cac82 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -228,10 +228,6 @@ class Poche # filter for reading time $filter = new Twig_SimpleFilter('getReadingTime', 'Tools::getReadingTime'); $this->tpl->addFilter($filter); - - # filter for simple filenames in config view - $filter = new Twig_SimpleFilter('getPrettyFilename', function($string) { return str_replace(ROOT, '', $string); }); - $this->tpl->addFilter($filter); } private function install() @@ -480,8 +476,8 @@ class Poche switch ($view) { case 'config': - $dev = $this->getPocheVersion('dev'); - $prod = $this->getPocheVersion('prod'); + $dev = trim($this->getPocheVersion('dev')); + $prod = trim($this->getPocheVersion('prod')); $compare_dev = version_compare(POCHE, $dev); $compare_prod = version_compare(POCHE, $prod); $themes = $this->getInstalledThemes(); @@ -745,7 +741,6 @@ class Poche { $this->user = array(); Session::logout(); - $this->messages->add('s', _('see you soon!')); Tools::logm('logout'); Tools::redirect(); } @@ -1009,6 +1004,7 @@ class Poche $token = substr(base64_encode(uniqid(mt_rand(), true)), 0, 20); } + $token = str_replace('+', '', $token); $this->store->updateUserConfig($this->user->getId(), 'token', $token); $currentConfig = $_SESSION['poche_user']->config; $currentConfig['token'] = $token; -- 2.41.0