From e1972e64bd8d2635e42ec6749118b74cec97f969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 30 Sep 2012 14:50:44 +0200 Subject: [PATCH] Yet another URL protection. should fix #16 --- author.php | 2 +- book.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/author.php b/author.php index a3310a7..f65a256 100644 --- a/author.php +++ b/author.php @@ -54,7 +54,7 @@ order by substr (upper (sort), 1, 1)'); { array_push ($entryArray, new Entry ($post->title, Author::getEntryIdByLetter ($post->title), str_format (localize("authorword.many"), $post->count), "text", - array ( new LinkNavigation ("?page=".parent::PAGE_AUTHORS_FIRST_LETTER."&id=".$post->title)))); + array ( new LinkNavigation ("?page=".parent::PAGE_AUTHORS_FIRST_LETTER."&id=". rawurlencode ($post->title))))); } return $entryArray; } diff --git a/book.php b/book.php index 4be9df3..bc11bf9 100644 --- a/book.php +++ b/book.php @@ -316,7 +316,7 @@ order by substr (upper (sort), 1, 1)"); { array_push ($entryArray, new Entry ($post->title, Book::getEntryIdByLetter ($post->title), str_format (localize("bookword.many"), $post->count), "text", - array ( new LinkNavigation ("?page=".parent::PAGE_ALL_BOOKS_LETTER."&id=".$post->title)))); + array ( new LinkNavigation ("?page=".parent::PAGE_ALL_BOOKS_LETTER."&id=". rawurlencode ($post->title))))); } return $entryArray; }