somehow url vars with &amp are not picked up by PHP
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Sep 2002 17:05:35 +0000 (17:05 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 16 Sep 2002 17:05:35 +0000 (17:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3686 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/html.php

index 246808e1b88c1782aacee14ef632b179c13cd12d..62bcafcf13899962058621378416d1afee2ed26d 100644 (file)
@@ -88,6 +88,7 @@
                        '/.+(\\?'.$var.')=(.*)$/AU',     /* at front and only var */
                        '/.+(\\&'.$var.')=(.*)$/AU'      /* at the end */
                      );
+//     preg_replace('/&amp;/','&',$url);            
         switch (true) {
             case (preg_match($pat_a[0],$url,$regs)):
                 $k = $regs[1];
             default:
                 if ($val) {
                     if (strpos($url,'?')) {
-                        $url .= "&amp;$var=$val";
+                        $url .= "&$var=$val";
                     } else {
                         $url .= "?$var=$val";
                     }
         if ($k) {
             if ($val) {
                 $rpl = "$k=$val";
-               $rpl = preg_replace('/&/','&amp;',$rpl);
+//             $rpl = preg_replace('/&/','&amp;',$rpl);
             } else {
                 $rpl = '';
             }