From 01b8f3b3c9d6414180c907860550a84298232d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 19 Jan 2014 21:09:11 +0100 Subject: [PATCH] Fix the last remaining direct use of $_SERVER['QUERY_STRING'] (which can be empty with some webservers). fix #133 --- OPDS_renderer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OPDS_renderer.php b/OPDS_renderer.php index 097a3e3..c460978 100644 --- a/OPDS_renderer.php +++ b/OPDS_renderer.php @@ -121,7 +121,7 @@ class OPDSRenderer self::getXmlStream ()->endElement (); $link = new LinkNavigation ("", "start", "Home"); self::renderLink ($link); - $link = new LinkNavigation ("?" . $_SERVER['QUERY_STRING'], "self"); + $link = new LinkNavigation ("?" . getQueryString (), "self"); self::renderLink ($link); $urlparam = "?"; if (!is_null (GetUrlParam (DB))) $urlparam = addURLParameter ($urlparam, DB, GetUrlParam (DB)); @@ -142,7 +142,7 @@ class OPDSRenderer if ($page->containsBook () && !is_null ($config['cops_books_filter']) && count ($config['cops_books_filter']) > 0) { $Urlfilter = getURLParam ("tag", ""); foreach ($config['cops_books_filter'] as $lib => $filter) { - $link = new LinkFacet ("?" . addURLParameter ($_SERVER['QUERY_STRING'], "tag", $filter), $lib, localize ("tagword.title"), $filter == $Urlfilter); + $link = new LinkFacet ("?" . addURLParameter (getQueryString (), "tag", $filter), $lib, localize ("tagword.title"), $filter == $Urlfilter); self::renderLink ($link); } }