[eGroupWare-svn] r56026 - in /trunk: etemplate/inc/class.etemplate.inc.php infolog/inc/class.infolog_ui.inc.php

[email protected] Thu, 05 May 2016 07:22:37 -0000
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: ralfbecker
Date: Thu May  5 09:22:37 2016
New Revision: 56026

URL: http://svn.stylite.de/viewvc/egroupware?rev=56026&view=rev
Log:
using global array_stripslashes function

Modified:
    trunk/etemplate/inc/class.etemplate.inc.php
    trunk/infolog/inc/class.infolog_ui.inc.php

Modified: trunk/etemplate/inc/class.etemplate.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/etemplate/inc/class.etemplate.inc.php?rev=56026&r1=56025&r2=56026&view=diff
==============================================================================
--- trunk/etemplate/inc/class.etemplate.inc.php (original)
+++ trunk/etemplate/inc/class.etemplate.inc.php Thu May  5 09:22:37 2016
@@ -2188,18 +2188,11 @@
 	*
 	* @param array &$var
 	* @return array
+	* @deprecated use global array_stripslashes
 	*/
 	static function array_stripslashes($var)
 	{
-		if (!is_array($var))
-		{
-			return stripslashes($var);
-		}
-		foreach($var as $key => $val)
-		{
-			$var[$key] = is_array($val) ? self::array_stripslashes($val) : stripslashes($val);
-		}
-		return $var;
+		return array_stripslashes($var);
 	}
 
 	/**
@@ -2229,7 +2222,7 @@
 		$content = array();
 		if (get_magic_quotes_gpc())
 		{
-			$content_in = self::array_stripslashes($content_in);
+			$content_in = array_stripslashes($content_in);
 		}
 		self::$validation_errors = array();
 		$this->canceled = $this->button_pressed = False;

Modified: trunk/infolog/inc/class.infolog_ui.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/infolog/inc/class.infolog_ui.inc.php?rev=56026&r1=56025&r2=56026&view=diff
==============================================================================
--- trunk/infolog/inc/class.infolog_ui.inc.php (original)
+++ trunk/infolog/inc/class.infolog_ui.inc.php Thu May  5 09:22:37 2016
@@ -2375,29 +2375,6 @@
 	}
 
 	/**
-	 * stripping slashes from an array
-	 *
-	 * @static
-	 * @param array $arr
-	 * @return array
-	 */
-	function array_stripslashes($arr)
-	{
-		foreach($arr as $key => $val)
-		{
-			if (is_array($val))
-			{
-				$arr[$key] = self::array_stripslashes($val);
-			}
-			else
-			{
-				$arr[$key] = stripslashes($val);
-			}
-		}
-		return $arr;
-	}
-
-	/**
 	 * Infolog's site configuration
 	 *
 	 */


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z