Форуми / Cotonti / Bugs / Error in URL during first login

Trustmaster
#34942 12.07.2012 11:37

Here is the fix. Open system/common.php at line 564:

		|| ($cfg['referercheck'] && !preg_match('`https?://([^/]+\.)?'.preg_quote($sys['domain'].$sys['site_uri']).'`i', $_SERVER['HTTP_REFERER']))))

replace it with

		|| ($cfg['referercheck'] && !preg_match('`https?://([^/]+\.)?'.preg_quote($sys['domain']).'(/|:|$)`i', $_SERVER['HTTP_REFERER']))))
May the Source be with you!