[banshee] MiroGuide: Properly escape search query strings
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] MiroGuide: Properly escape search query strings
- Date: Mon, 14 Mar 2011 21:09:12 +0000 (UTC)
commit 9416acac0ec93534affb6e4fba88f8e308f53281
Author: Gabriel Burt <gabriel burt gmail com>
Date: Mon Mar 14 16:08:50 2011 -0500
MiroGuide: Properly escape search query strings
.../Banshee.MiroGuide/Banshee.MiroGuide/View.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.MiroGuide/Banshee.MiroGuide/View.cs b/src/Extensions/Banshee.MiroGuide/Banshee.MiroGuide/View.cs
index 82186a1..43fd9ce 100644
--- a/src/Extensions/Banshee.MiroGuide/Banshee.MiroGuide/View.cs
+++ b/src/Extensions/Banshee.MiroGuide/Banshee.MiroGuide/View.cs
@@ -125,8 +125,8 @@ namespace Banshee.MiroGuide
public override void GoSearch (string query)
{
- var uri = GetActionUrl (LastPageWasAudio, "search/");
- LoadUri (new Uri (uri + query).AbsoluteUri);
+ query = System.Uri.EscapeDataString (query);
+ LoadUri (new Uri (GetActionUrl (LastPageWasAudio, "search/") + query).AbsoluteUri);
}
private string GetActionUrl (bool audio, string action)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]