Update libraries/joomla/uri/uri.php

Add "|| $_SERVER['SERVER_PORT'] == 443" : line 155 for stop infinite loop.