]> git.immae.eu Git - github/shaarli/Shaarli.git/commit - index.php
HTTP: move server URL functions to `HttpUtils.php` 346/head
authorVirtualTam <virtualtam@flibidi.net>
Sun, 6 Sep 2015 19:31:37 +0000 (21:31 +0200)
committerVirtualTam <virtualtam@flibidi.net>
Mon, 14 Sep 2015 18:27:16 +0000 (20:27 +0200)
commit482d67bd523bf12f36508a0131d09fe299ee02f4
treeb4e7c6ddaa1d88cc49bc96c2524f12431d8fcce0
parent7b114771d337af3bfd51d8fda1e8f2fd5b39535d
HTTP: move server URL functions to `HttpUtils.php`

Relates to #333

Modifications:
 - refactor server URL utility functions
 - do not access global `$_SERVER` variables
 - add test coverage
 - improve readability
 - apply coding conventions

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
application/HttpUtils.php
index.php
tests/HttpUtils/GetHttpUrlTest.php [moved from tests/HttpUtilsTest.php with 100% similarity]
tests/HttpUtils/IndexUrlTest.php [new file with mode: 0644]
tests/HttpUtils/PageUrlTest.php [new file with mode: 0644]
tests/HttpUtils/ServerUrlTest.php [new file with mode: 0644]