From 0de1664aae49312c15f2dbcaa8aa3eb0a849191d Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 3 Mar 2010 12:04:23 +0100 Subject: [PATCH] Don't assume that url parameters have an equal sign. --- framework/Url/lib/Horde/Url.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Url/lib/Horde/Url.php b/framework/Url/lib/Horde/Url.php index f028f7166..9652dff4e 100644 --- a/framework/Url/lib/Horde/Url.php +++ b/framework/Url/lib/Horde/Url.php @@ -80,12 +80,12 @@ class Horde_Url /* Check if the argument separator has been already * htmlentities-ized in the URL. */ - if (preg_match('/=.*?&.*?=/', $query)) { + if (preg_match('/&/', $query)) { $query = html_entity_decode($query); if (is_null($raw)) { $raw = false; } - } elseif (preg_match('/=.*?&.*?=/', $query)) { + } elseif (preg_match('/&/', $query)) { if (is_null($raw)) { $raw = true; } -- 2.11.0