From 674073b5951b1cdba9c274ecac976df94c7c7779 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 31 Dec 2009 01:14:32 -0700 Subject: [PATCH] Bug #8803: Fix urlencoding of parameters. http_build_query() does urlencode()-ish encoding, not rawurlencode()-ish encoding. We need the latter to ensure that we always handle spaces correctly (i.e. javascript code does not like '+' encoding for spaces - it wants '%20' instead). --- framework/Core/lib/Horde.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 448176f98..bca8e1b34 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -2257,7 +2257,7 @@ HTML; $params->width = $options['width']; } if (!empty($options['params'])) { - $params->params = http_build_query($options['params']); + $params->params = http_build_query(array_map('rawurlencode', $options['params'])); } if (!empty($options['menu'])) { $params->menu = 1; -- 2.11.0