]> git.immae.eu Git - github/shaarli/Shaarli.git/commit
Links: refactor & improve URL cleanup 314/head
authorVirtualTam <virtualtam@flibidi.net>
Thu, 13 Aug 2015 23:14:07 +0000 (01:14 +0200)
committerVirtualTam <virtualtam@flibidi.net>
Sat, 15 Aug 2015 13:58:38 +0000 (15:58 +0200)
commitd9d776af19fd0a191f82525991dafbb56e1bcfcb
tree96f5271dfc13048c43e81079b6d8a10d876b8b79
parenta3b1b4ae709bd3c5a8ec6fe29aa36fd01c52bca5
Links: refactor & improve URL cleanup

Relates to #141
Relates to #133

Modifications
 - move URL cleanup to `application/Url.php`
 - rework the cleanup function
   - fragments: `#stuff`
   - GET parameters: `?var1=val1&var2=val2`
 - add documentation (APIs the params belong to)
 - add test coverage

Reference
 - http://php.net/parse_url
 - http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
.gitignore
application/Url.php [new file with mode: 0644]
index.php
tests/UrlTest.php [new file with mode: 0644]