mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
"fix to understand and replace ereg(i) with array-subscriptions as parameters (eg. $_REQUEST['something'])"
This commit is contained in:
parent
c6886bee7d
commit
40168aca6a
@ -10,6 +10,7 @@
|
||||
* @link http://www.egroupware.org
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @author RalfBecker@outdoor-training.de
|
||||
* @copyright 2009/10 by RalfBecker@outdoor-training.de
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
@ -61,7 +62,7 @@ function fix_depricated($file,$replace_file=false)
|
||||
$lines = strtr($lines,$replace);
|
||||
}
|
||||
// PHP Deprecated: Function ereg() is deprecated
|
||||
if (preg_match_all('/!?eregi? *\\(("[^"]+"[^,]*|\'[^\']+\'[^,]*), *(\$[A-Za-z0-9_]+)(, *\$[A-Za-z0-9_]+)?\)([ )&|]+)/m',$lines,$matches))
|
||||
if (preg_match_all('/!?eregi? *\\(("[^"]+"[^,]*|\'[^\']+\'[^,]*), *(\$[A-Za-z0-9_\[\]\$\'\"]+)(, *\$[A-Za-z0-9_\[\]\$\'\"]+)?\)([ )&|]+)/m',$lines,$matches))
|
||||
{
|
||||
$replace = array();
|
||||
//print_r($matches);
|
||||
|
Loading…
Reference in New Issue
Block a user