Topic: Error with get_current_url() and https

get_current_url() always append port number to URL ( Ex: https://server:443/page.php ) and make fail CSRF confirmation.


Changing include/functions.php, line 2025 should be solve the problem.

$port = (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80' && strpos($_SERVER['HTTP_HOST'], ':') === false) ? ':'.$_SERVER['SERVER_PORT'] : '';

to...

$port = (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '443' && $_SERVER['SERVER_PORT'] != '80' && strpos($_SERVER['HTTP_HOST'], ':') === false) ? ':'.$_SERVER['SERVER_PORT'] : '';
sorry for my english

Re: Error with get_current_url() and https

Fixed