Guest LesR Posted May 3, 2010 Share Posted May 3, 2010 Hi Every time someone registers they get the following error:- "Warning: preg_match() [function.preg-match]: Unknown modifier '/' in ...." The registration works and they get the welcome email but they are left on a blank page with the above error message. Does anyone know how to overcome this problem? Any help would be much appreciated Thanks Les Quote Link to comment Share on other sites More sharing options...
leeofaccy Posted May 4, 2010 Share Posted May 4, 2010 "Warning: preg_match() [function.preg-match]: Unknown modifier '/' in ...." I think it is an error in includes/content/reg.inc.php around line 185. Find this code if (preg_match('/^http(s?):\/\//i', $redir) && !preg_match('/^'.$glob['storeURL'].'|^'.$config['storeURL_SSL'].'/i', $redir)) { die("Redirect URL not allowed!"); Remove one of the / here.... http(s?):\/\//i', $redir). It should now look like this if (preg_match('/^http(s?):\/\/i', $redir) && !preg_match('/^'.$glob['storeURL'].'|^'.$config['storeURL_SSL'].'/i', $redir)) { die("Redirect URL not allowed!"); Hope that does it Lee Quote Link to comment Share on other sites More sharing options...
Guest LesR Posted May 4, 2010 Share Posted May 4, 2010 Thanks Lee, it worked a treat Les Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.