more url_escape

This commit is contained in:
Shish 2010-07-26 23:10:43 +01:00
parent c78aa580c0
commit 41cc80df34

View file

@ -125,9 +125,8 @@ class ViewImage extends SimpleExtension {
send_event(new ImageInfoSetEvent(Image::by_id($image_id))); send_event(new ImageInfoSetEvent(Image::by_id($image_id)));
$query = $_POST['query'];
$page->set_mode("redirect"); $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'])));
} }
} }