storytlr/storytlr — pull request #83 by Simounet (2014-01-28 21:03:01+00:00)
Title: FIX setcookie when a custom http port is used

Use case without this patch:
===
- Install Storytlr from http://storytlr.loc:8080/
- Try to login with the same url
- No error displayed
=> It's not possible to set a cookie with a port number in the cookie domain

Patch:
===
- Use parse_url PHP function
- Check if there is a custom http port
- if true: just get the host and let the port behind
- if false: return the initial string