ereg_replace() is depreceated

29.09.2012 00:41
#1
Jazzvox
Joomshopping forum user no avatar
Name: Mathias Roth
17.12.2010
Posts: 23
Quote
ereg_replace() is depreceated

Since my server uses PHP 5.3, when using JS uni-import I receive the message:

"ereg_replace() is depreceated ..." (which is true in PHP 5.3),

in 'com_jshopping/lib/uploadfile.class.php'

find:
$name = ereg_replace("[^a-zA-Z0-9\.]", "_" , $name);

change to:
$name = preg_replace("/[^a-zA-Z0-9\.]/", "_" , $name);

I still hope the use of the delimiter '/' is correct,
but it seems to work.

> decent call for action @webdesigner ...


Joomla: 2.5.7
JoomShopping: 3.11.0
PHP: 5.3.13
MySQL: 5.1.63
Website Url: http://jacob-boehme.de/
 
29.09.2012 14:56
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16513
Quote
Aw: ereg_replace() is depreceated

Will be fixed in the new version.

 
Copyrights MAXXmarketing GmbH. All Rights Reserved