From 366c6f7a42ae0a0f9bfc1765a912611469f119f1 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 21 Oct 2010 13:46:06 -0400 Subject: added url encoding to search query when used as a starting point for the question title --- askbot/skins/default/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/askbot/skins/default/templates/base.html b/askbot/skins/default/templates/base.html index f425304f..f7684fb7 100644 --- a/askbot/skins/default/templates/base.html +++ b/askbot/skins/default/templates/base.html @@ -62,7 +62,7 @@ $('#nav_ask').click( function(){ var starting_title = $('#keywords').attr('value'); - var new_url = $(this).attr('href') + '?title=' + starting_title; + var new_url = $(this).attr('href') + '?title=' + encodeURIComponent(starting_title); window.location.href = new_url; return false; } -- cgit v1.2.3-1-g7c22