Fix deprecated ereg_replace()

This commit is contained in:
james 2011-12-08 20:51:31 +00:00
parent 02b06de804
commit dbf4c71e1f

View File

@ -230,7 +230,7 @@ if($config['SFIABDIRECTORY'] == '') {
session_name("SFIABSESSID");
session_set_cookie_params(0,'/');
} else {
session_name("SFIABSESSID".ereg_replace("[^A-Za-z]","_",$config['SFIABDIRECTORY']));
session_name("SFIABSESSID".preg_replace("/[^A-Za-z]/","_",$config['SFIABDIRECTORY']));
session_set_cookie_params(0,$config['SFIABDIRECTORY']);
}
session_start();