Bug #807
parseUrl does not work for domains ending with www
Start date:
May 06, 2013
Due date:
% Done:
100%
Estimated time:
Description
Example: domainwww.com will not work, there is a redirect loop.
$requestPath = preg_replace('#^\/#', '', $_SERVER['REQUEST_URI']); if (!preg_match('/www\./', $domain) && preg_match('/:\/\/www\./', $this->iaCore->get('baseurl'))) { $domain = preg_replace('/^/', 'www.', $domain); iaCore::util(); iaUtil::go_to('http://' . $domain . IA_URL_DELIMITER . $requestPath); } elseif (preg_match('/www\./', $domain) && !preg_match('/:\/\/www\./', $this->iaCore->get('baseurl'))) { $domain = preg_replace('/^www\./', '', $domain); iaCore::util(); iaUtil::go_to('http://' . $domain . IA_URL_DELIMITER . $requestPath); }
History
Updated by Batyr Mackenov almost 8 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
fixed. commit:34c62de