[dev] patch to Horde::addParameter()

David Ulevitch davidu@everydns.net
Fri, 5 Jul 2002 15:34:02 -0700 (PDT)


Here's a small patch to let Horde::addParameter support alternate output
delim's.

The change is a switch from: & to ini_get('arg_separator.output').

-davidu

Index: lib/Horde.php
===================================================================
RCS file: /repository/horde/lib/Horde.php,v
retrieving revision 1.168
diff -u -r1.168 Horde.php
--- lib/Horde.php       3 Jul 2002 20:33:01 -0000       1.168
+++ lib/Horde.php       5 Jul 2002 22:25:00 -0000
@@ -331,7 +331,7 @@
         if (strstr($url, $parameter) === false) {
             $pos = strpos($url, '?');
             if ($pos !== false) {
- $url = substr_replace($url, $parameter . '&', $pos + 1, 0);
+ $url = substr_replace($url, $parameter .
ini_get('arg_separator.output'), $pos + 1, 0);
             } else {
                 $url .= '?' . $parameter;
             }


-- 
"Never doubt that a small group of thoughtful citizens can change the
world. Indeed, it is the only thing that ever has." --Margaret Mead