date.chapril.org-framadate/app
Luc Didry c4ec2bbc41 Fix $_SERVER['SERVER_PORT'] handling
While installing Framadate on Apache, but proxyfied by an Nginx,
$_SERVER['SERVER_PORT'] failed to be correctly handled.

$_SERVER['SERVER_PORT'] is then a string and not an integer, so it was
added in the response of get_server_name() function, breaking all the
css/js links.

I don't know if there is other situations where the bug appears.

Schema of the installation:

Nginx (443) -> Apache2 (80) + Framadate

Please note that using port 80 on Nginx worked.
2018-02-28 17:09:16 +01:00
..
classes/Framadate Fix $_SERVER['SERVER_PORT'] handling 2018-02-28 17:09:16 +01:00
inc Merge branch 'develop' 2018-02-20 19:05:24 +01:00
tests Run php-cs-fixer with a custom config. This may break a lot of things 2018-02-19 19:43:30 +01:00