phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc class.data_cleaner.inc.php,1.1.2.4


From: Caeies
Subject: [Phpgroupware-cvs] phpgwapi/inc class.data_cleaner.inc.php,1.1.2.4
Date: Fri, 30 Sep 2005 18:22:00 +0200

Update of phpgwapi/inc

Modified Files:
     Branch: Version-0_9_16-branch
            class.data_cleaner.inc.php lines: +3 -3

Log Message:
fix for automagic quote stuff in URL (now work with and without)

====================================================
Index: phpgwapi/inc/class.data_cleaner.inc.php
diff -u phpgwapi/inc/class.data_cleaner.inc.php:1.1.2.3 
phpgwapi/inc/class.data_cleaner.inc.php:1.1.2.4
--- phpgwapi/inc/class.data_cleaner.inc.php:1.1.2.3     Mon Sep 26 04:09:25 2005
+++ phpgwapi/inc/class.data_cleaner.inc.php     Fri Sep 30 16:22:28 2005
@@ -253,8 +253,8 @@
                        // Save a second time and you will get :
                        // <a 
href="/phpgw/redirect.php?go=/phpgw/redirect.php?go=titi.org"> my site </a>
                        // ....
-                       $data = 
preg_replace_callback('/href\s*=\s*\\\\(["\'])?((?(1)[^\1]*?|[^\s]+))(?(1)\1|)/i',
-                               create_function('$m', 'return \'href="\' . 
(strlen($m[2]) && $m[2]{0} == \'#\' ? $m[2] : 
$GLOBALS[\'phpgw\']->safe_redirect($m[2])) . \'"\';'),
+                       $data = 
preg_replace_callback('/href\s*=\s*([\\\]?["\']?)((?(1)[^\1]*?|[^\s]+))(?(1)\1|)/i',
+                               create_function('$m', 'return \'href="\' . 
(strlen($m[2]) && $m[2]{0} == \'#\' ? $m[2] : 
$GLOBALS[\'phpgw\']->safe_redirect(urldecode($m[2]))) . \'"\';'),
                                $data);
                }
                return $data;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]