aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Url
Commit message (Collapse)AuthorAgeFilesLines
* Add a whitelist of protocols for URLsArthurHoaro2017-05-251-0/+63
| | | | | | | - for Shaare - for markdown description links and images Not whitelisted protocols will be replaced by `http://`
* Cleanup: explicit method visibilityVirtualTam2017-01-051-4/+4
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* URL cleanup: add 'campaign_' to the annoying parametersVirtualTam2017-01-041-34/+68
| | | | | | Closes https://github.com/shaarli/Shaarli/issues/735 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Fix typo in test method namejulienCXX2016-07-211-2/+2
|
* Url.php: remove unwanted ?PHPSESSID= URL parameters,nodiscc2016-05-201-0/+1
| | | | update test case
* typoArthurHoaro2016-05-051-2/+2
|
* Fixes #531 - Title retrieving is failing with multiple use caseArthurHoaro2016-05-031-0/+15
| | | | see https://github.com/shaarli/Shaarli/issues/531 for details
* Refactor and rebase #380: Firefox reader view linksArthurHoaro2016-03-261-0/+7
| | | | | Fixes #366 Closes #380
* Fixes #410 - Retrieve title fails in multiple casesArthurHoaro2016-01-111-0/+18
| | | | | | | | | * `get_http_url()` renamed to `get_http_response()`. * Use the same HTTP context to retrieve response headers and content. * Follow HTTP 301 and 302 redirections to retrieve the title (default max 3 redirections). * Add `LinkUtils` to extract titles and charset. * Try to retrieve charset from HTTP headers first (new), then HTML content. * Use mb_string to re-encode title if necessary.
* Wallabag plugin improvementArthurHoaro2015-12-271-0/+11
| | | | | | | | * Fixes a bug where URL weren't properly encoded. * Adds Wallabag V2 support. * Adds a URL function to handle trailing slash. * UT. * README updated.
* cleanup: remove the executable bit from source scriptsVirtualTam2015-11-111-0/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Url: introduce global helper functions for cleanup and scheme detectionGuillaume Virlet2015-09-084-0/+286
Relates to #314 & #326 Additions: - add global `cleanup_url()` and `get_url_scheme()` functions Modifications: - replace `Url` usage in `index.php` by calls to global functions - fix `Url` tests not being run: PHPUnit expects a single test class per file - move classes to separate files