diff --git a/common.inc.php b/common.inc.php index 25d982d..8475528 100644 --- a/common.inc.php +++ b/common.inc.php @@ -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();