aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper
Commit message (Collapse)AuthorAgeFilesLines
* ContentProxy: replace ignoreUrl with new RuleBasedIgnoreOriginProcessorKevin Decherf2020-04-251-37/+4
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Add new Helper to process Ignore Origin rules and RulerZ operatorKevin Decherf2020-04-251-0/+50
| | | | | | | | | | This commits adds a new helper like RuleBasedTagger for processing ignore origin rules. It also adds a new custom RulerZ operator for the '~' pattern matching rule. Renames 'pattern' with '_all' in IgnoreOriginRule entity. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Added publication date on epub exportNicolas Lœuillet2020-04-061-0/+7
|
* Cleanup cookie jarJeremy Benoist2020-03-291-24/+0
| | | | As of latest Guzzle release, it's fixed so we can removed that code.
* Update depsJeremy Benoist2019-11-127-27/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also CS (because cs-fixer got an update) Package operations: 0 installs, 26 updates, 0 removals - Updating twig/twig (v2.12.1 => v2.12.2) - Updating symfony/symfony (v3.4.33 => v3.4.34) - Updating doctrine/event-manager (v1.0.0 => 1.1.0) - Updating doctrine/collections (v1.6.2 => 1.6.3) - Updating doctrine/cache (v1.8.1 => 1.9.0) - Updating doctrine/persistence (1.1.1 => 1.2.0) - Updating doctrine/inflector (v1.3.0 => 1.3.1) - Updating symfony/mime (v4.3.5 => v4.3.7) - Updating swiftmailer/swiftmailer (v6.2.1 => v6.2.3) - Updating symfony/swiftmailer-bundle (v3.3.0 => v3.3.1) - Updating doctrine/dbal (v2.9.2 => v2.9.3) - Updating doctrine/instantiator (1.2.0 => 1.3.0) - Updating j0k3r/graby-site-config (1.0.93 => 1.0.94) - Updating phpoption/phpoption (1.5.0 => 1.5.2) - Updating symfony/http-client-contracts (v1.1.7 => v1.1.8) - Updating symfony/http-client (v4.3.5 => v4.3.7) - Updating sensiolabs/security-checker (v6.0.2 => v6.0.3) - Updating paragonie/constant_time_encoding (v2.2.3 => v2.3.0) - Updating scheb/two-factor-bundle (v4.7.1 => v4.8.0) - Updating symfony/phpunit-bridge (v4.3.6 => v4.3.7) - Updating composer/xdebug-handler (1.3.3 => 1.4.0) - Updating friendsofphp/php-cs-fixer (v2.15.3 => v2.16.0) - Updating doctrine/data-fixtures (v1.3.2 => 1.3.3) - Updating nette/schema (v1.0.0 => v1.0.1) - Updating nikic/php-parser (v4.2.4 => v4.3.0) - Updating sentry/sentry (2.2.2 => 2.2.4)
* Add logger to FileCookieJarJeremy Benoist2019-07-241-0/+19
|
* Use a custom cookiejar to avoid error when the cookie is badly savedJeremy Benoist2019-07-241-0/+72
| | | | | | | It happens sometimes on wallabag.it, the json inside the cookie is badly saved and the json isn't valid. It generates an exception and avoid people to use the api and import contents. To fix that, we use a dedicated `FileCookieJar`, which extends the default one from Guzzle to fix these issues. Also updated deps
* 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>