aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3271 from wallabag/store-resolved-urlJérémy Benoist2019-06-051-0/+2
|\ | | | | Add `given_url` in Entry table to check if a redirected url has already added
| * Use hash given url to avoid duplicateJeremy Benoist2019-05-291-1/+2
| | | | | | | | Using hashed url we can ensure an index on them to ensure it's fast.
| * Added given_url in entry tableNicolas Lœuillet2019-05-291-0/+1
| | | | | | | | | | | | | | | | | | | | - Added index on entry table for given_url field - Fix tests: The previous `bit.ly` url redirected to doc.wallabag but that url doesn't exist in the fixtures. I used our own internal "redirector" to create a redirect to an url which exist in the fixtures. Also, updating current migration to use the new `WallabagMigration`.
* | Drop SimplePieJeremy Benoist2019-05-291-16/+15
|/ | | | | It was only used to make an absolute url when downloading images. The deps is still there (in the `composer.lock`) because Graby use it (not for absolute but for encoding).
* Merge pull request #3944 from shtrom/always-hash-exists-urlJérémy Benoist2019-05-281-0/+23
|\ | | | | Always hash exists url
| * Change the way to define algorithm for hashing urlJeremy Benoist2019-05-241-6/+7
| |
| * Add Wallabag\CoreBundle\Helper\UrlHasherOlivier Mehani2019-05-241-0/+22
| | | | | | | | Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* | Fix tests after rebaseJeremy Benoist2019-05-281-2/+4
| |
* | Fix some testsJeremy Benoist2019-05-281-8/+11
| |
* | CSJeremy Benoist2019-05-282-2/+2
| |
* | Configure timeoutadev2019-05-281-3/+7
| |
* | Fix because of some breaking changes of Graby 2.0adev2019-05-281-11/+9
| |
* | Use httplugadev2019-05-282-29/+39
| |
* | Set first picture as preview picturenicofrand2019-05-212-12/+37
|/
* Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-05-151-0/+1
|\
| * Enable no-referrer on img tags, enable strict-origin-when-cross-origin by ↵Kevin Decherf2019-05-101-0/+1
| | | | | | | | | | | | | | | | default Fixes #3889 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | Fallback to default solution if Imagick failsJeremy Benoist2019-05-101-4/+9
| |
* | Use Imagick to keep GIF animationJeremy Benoist2019-05-101-1/+10
| | | | | | | | | | If Imagick is available, GIF will be saved using it to keep animation. Otherwise the previous method will be used and the animation won't be kept.
* | Changed RSS to Atom feed and improve pagingThomas Citharel2019-04-251-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-04-012-15/+16
|\|
| * Merge pull request #3909 from wallabag/fix/html-not-definedJérémy Benoist2019-03-181-7/+6
| |\ | | | | | | Fix PHP warning
| | * Fix PHP warningJeremy Benoist2019-03-181-7/+6
| | | | | | | | | | | | Looks like sometimes (usually from import) the `html` key isn’t available.
| * | epub: fix exception when articles have the same titleKevin Decherf2019-03-171-1/+1
| |/ | | | | | | | | | | | | | | | | | | This commit fixes an exception occuring when exporting as epub several articles with the same title. The chapter filename is now derived from title and url. Fixes #3642 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
| * epub export: fix missing cover image, only for exports of one articleKevin Decherf2019-02-181-7/+9
| | | | | | | | | | | | Fixes #3602 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
| * CSJeremy Benoist2019-02-111-1/+1
| |
* | Enable PHPStanJeremy Benoist2019-01-181-0/+1
| | | | | | | | | | - Fix error for level 0 & 1 (level 7 has 699 errors...) - Add `updated_at` to site_credential (so the `timestamps()` method applies correctly)
* | CSJeremy Benoist2019-01-151-1/+1
|/
* EntriesExport: avoid else on $authorsKevin Decherf2019-01-091-4/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport: sanitize filename and fix testsKevin Decherf2019-01-081-10/+18
| | | | | | | | Filename will now only use a-zA-Z0-9-' and space. Fixes remaining filename issue on #3811 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/pdf: move notice to the end, add metadata coverKevin Decherf2019-01-071-8/+25
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: add metadata to each entry's coverKevin Decherf2019-01-071-1/+16
| | | | | | | | | | | | | Add metadata to the cover of each entry: - Publishers - Estimated reading time - Date of creation ("Added on") - Address (URL) Related to #2821 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport: change authors and title when not single entry exportKevin Decherf2019-01-071-1/+1
| | | | | | | | | | Change '{method} authors' (which gives 'Tag_entries authors' when exporting a tag) to 'Various authors'. When exporting a tag (tag_entries), change the title from 'Tag_entries articles' to 'Tag {tag} articles'. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: revert c779373f, move exportinfo to the end of the bookKevin Decherf2019-01-071-1/+3
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: use sha1 sums for filenames, fix and rename title chaptersKevin Decherf2019-01-071-6/+6
| | | | | | | | This commit renames entry chapters file using a sha1 sum of their title for simplicity. Also we fix the 'Title' chapter duplicate issue by using the hash of the related entry and the suffix '_title'. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: remove TOC pageKevin Decherf2019-01-071-2/+0
| | | | | | | | | This change only remove the rendered page of the TOC at the end of the book, the TOC remains available to readers. Fixes #3603 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntriesExport/epub: replace epub identifier with unique urnKevin Decherf2019-01-061-2/+8
| | | | | | | | | | | | | | We replace the title used as the unique identifier of the epub file with a urn following the format: urn:wallabag:{sha1("wallabagUrl:listOfEntryIdsSeparatedByComma")} This format is repeatable: it always gives the same uid for the same list of entries. Fixes #3811 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* phpcsKevin Decherf2018-10-241-1/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: remove 'query string' case from ignore listKevin Decherf2018-10-241-2/+0
| | | | | | | Two urls with a different query string may refer to two different pages so keep them both. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: add comment blocks for the parse_url diff checkKevin Decherf2018-10-241-0/+23
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: rewrite some if, resolving feedbacks from PRKevin Decherf2018-10-241-32/+35
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* ignoreOriginUrl: add initial support of ignore listsKevin Decherf2018-10-221-20/+59
| | | | | | | | | | | Add the ability to specify hosts and patterns lists to ignore the given entry url and replace it with the fetched content url without touching to origin_url. This initial support should be reworked in the following months to move the hardcoded ignore lists in the database. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* updateOriginUrl: add behavior when diff is fragment and queryKevin Decherf2018-10-221-0/+1
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Refactor updateOriginUrl to include new behaviors behaviorsKevin Decherf2018-10-221-9/+45
| | | | | | | | - Leave origin_url unchanged if difference is an ending slash - Leave origin_url unchanged if difference is scheme - Ignore (noop) if difference is query string or fragment Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* ContentProxy: swap entry url to origin_url and set new url according to ↵Kevin Decherf2018-10-211-4/+11
| | | | | | | | graby content Closes #3529 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* ContentProxy: fix a corner case when entry.url is empty in updateEntryKevin Decherf2018-10-211-0/+8
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Run php-cs-fixer for fixing coding standard issuesTobi8232018-09-231-41/+53
|
* Override the value of the given parameter ($title) with the (hopefully)Tobi8232018-09-211-2/+1
| | | | correct (to UTF-8) converted PDF title
* Add tests for logicTobi8232018-09-211-2/+2
| | | | Try to translate the title of a PDF from UTF-8 (then UTF-16BE, then WINDOWS-1252) to UTF-8
* Try to detect the character encoding in PDFs and try to translateTobi8232018-09-211-13/+33
| | | | the title from the PDF to UTF-8
* Remove type declaration for PHP 5 compatibilityTobi8232018-09-211-1/+1
|