From 41cc80df34fb4f625b230a406013d2e4b5297bc1 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 26 Jul 2010 23:10:43 +0100 Subject: [PATCH] more url_escape --- ext/view/main.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/view/main.php b/ext/view/main.php index 67430c6c..fc495cbc 100644 --- a/ext/view/main.php +++ b/ext/view/main.php @@ -125,9 +125,8 @@ class ViewImage extends SimpleExtension { send_event(new ImageInfoSetEvent(Image::by_id($image_id))); - $query = $_POST['query']; $page->set_mode("redirect"); - $page->set_redirect(make_link("post/view/$image_id", $query)); + $page->set_redirect(make_link("post/view/$image_id", url_escape($_POST['query']))); } }