aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/LinkUtils.php
Commit message (Collapse)AuthorAgeFilesLines
* namespacing: move LinkUtils along \Shaarli\Bookmark classesVirtualTam2019-01-121-222/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-121-0/+2
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to application/VirtualTam2018-12-021-2/+3
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Support redirection in cURL download callbackArthurHoaro2018-05-011-4/+13
|
* Merge pull request #977 from ArthurHoaro/feature/dl-filterArthurHoaro2018-01-231-34/+55
|\ | | | | Extract the title/charset during page download, and check content type
| * Extract the title/charset during page download, and check content typeArthurHoaro2017-10-281-34/+55
| | | | | | | | | | | | | | Use CURLOPT_WRITEFUNCTION to check the response code and content type (only allow HTML). Also extract the title and charset during downloading chunk of data, and stop it when everything has been extracted. Closes #579
* | Don't URL encode description links if parameter 'redirector.encode_url' is ↵ArthurHoaro2017-11-071-6/+9
| | | | | | | | set to false
* | Fix parsing for description links with parenthesesArthurHoaro2017-09-291-1/+1
|/ | | | | | With markdown plugin disabled relates to #966
* Cleanup: use safe boolean comparisonsVirtualTam2017-01-071-1/+3
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add a persistent 'shorturl' key to all linksArthurHoaro2016-12-121-0/+13
| | | | | | | All existing link will keep their permalinks. New links will have smallhash generated with date+id. The purpose of this is to avoid collision between links due to their creation date.
* Minor code cleanup: PHPDoc, spelling, unused variables, etc.ArthurHoaro2016-10-201-1/+2
|
* Hashtag systemArthurHoaro2016-06-061-0/+75
| | | | | | * Hashtag are auto-linked with a filter search * Supports unicode * Compatible with markdown (excluded in code blocks)
* Add private link counterArthurHoaro2016-05-131-0/+16
|
* Fixes #531 - Title retrieving is failing with multiple use caseArthurHoaro2016-05-031-3/+3
| | | | see https://github.com/shaarli/Shaarli/issues/531 for details
* Fixes #512: retrieving title didn't match the first closing tagArthurHoaro2016-03-081-1/+1
|
* tests: add a make target to check file permissionsVirtualTam2016-01-171-0/+0
| | | | | | | | Additions: - [makefile] check versioned files are not executable - [travis] call the new make target Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Fixes #410 - Retrieve title fails in multiple casesArthurHoaro2016-01-111-0/+79
* `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.