aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Bugfix: Sanitize the title of a saved webpage from invalid UTF-8 charactersTobi8232018-09-211-0/+23
|
* php-cs-fixerKevin Decherf2018-09-057-13/+13
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* More robust srcset image attribute handlingSimounet2018-07-121-3/+8
| | | | Linked to HTMLawed PR https://github.com/kesar/HTMLawed/pull/17
* Fix image downloading on null image pathSimounet2018-07-051-0/+4
|
* Fix srcset attribute on images downloadedSimounet2018-06-011-3/+33
|
* Fix empty title and domain_name when exception is thrown during fetchKevin Decherf2017-12-131-4/+33
| | | | | | | | | | Add a new helper to set a default title when it's empty: 1/ use basename part of entry's path, if any 2/ or use domain name Fixes #2053 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Define storeArticleHeaders false by defaultJeremy Benoist2017-11-211-1/+1
| | | | | Fix tests which must use `$storeArticleHeaders`. Fix CS
* Added internal setting to enable/disable headers storageNicolas Lœuillet2017-11-201-2/+4
|
* Properly run php-cs-fixerJeremy Benoist2017-10-281-23/+23
|
* php-cs-fixerMartin Trigaux2017-10-281-24/+24
| | | | php bin/php-cs-fixer fix src/Wallabag/CoreBundle/Helper/EntriesExport.php
* Set the title in a separated chapterMartin Trigaux2017-10-281-5/+4
| | | | | Set the export option on the same page, same as done in producePdf Move the ToC at the end of the book so the title page is the first one
* add a title pageMartin Trigaux2017-10-281-1/+2
| | | | The first page of the book is the title
* CSJeremy Benoist2017-10-111-3/+3
|
* Fixed @j0k3r's reviewNicolas Lœuillet2017-10-111-0/+1
|
* Fixed @tcitworld's reviewNicolas Lœuillet2017-10-111-6/+2
|
* Translated first page of exported articleNicolas Lœuillet2017-10-111-2/+7
|
* CSJeremy Benoist2017-10-091-1/+1
|
* Merge pull request #3332 from nclsHart/better-txt-exportNicolas Lœuillet2017-09-061-1/+3
|\ | | | | Better entry txt export using html2text
| * better entry txt export using html2textNicolas Hart2017-08-271-1/+3
| |
* | Tag: render tags case-insensitive by storing them in lowercaseKevin Decherf2017-08-271-1/+1
|/ | | | | | Fixes #2502 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Fix some namespaces and phpdocNicolas Hart2017-07-291-2/+2
|
* Add a test for updatePublishedAtJeremy Benoist2017-07-241-3/+9
| | | | | | | To avoid error when a content is re-submitted and it previously add a published date. Also, fix the `testPostSameEntry`
* Fix updatePublishedAt on already parsed article's dateSimounet2017-07-241-1/+1
|
* Merge pull request #3266 from egilli/export-domain-as-authorJérémy Benoist2017-07-111-6/+31
|\ | | | | Use the article publisher as author for exported files
| * Make updateAuthor code simpler to readÉtienne Gilli2017-07-101-8/+10
| |
| * Use the article publisher as author for exportÉtienne Gilli2017-07-091-2/+9
| | | | | | | | | | When exporting an entry, use the publishedBy field as author name for epub, mobi and pdf formats. Fallback to domain name if empty.
| * Use the article domain as author for export filesÉtienne Gilli2017-07-081-6/+22
| | | | | | | | | | | | | | When exporting an entry, use the domain name as author name for epub, mobi and pdf formats, instead of 'wallabag'. Change the author from array to string, because for now, there is always only one author.
* | Add EntityTimestampsTrait to handle datesJeremy Benoist2017-07-061-0/+24
|/ | | | Refactorize timestamps() method to avoid re-writing it on each entity
* CSJeremy Benoist2017-07-031-70/+70
|
* Fix validateAndSetPreviewPictureJeremy Benoist2017-07-031-4/+1
| | | | Which wasn't covered by a test!
* Fix PATCH methodJeremy Benoist2017-07-031-37/+52
| | | | | The PATCH method for the entry should only update what user sent to us and not the whole entry as it was before. Also, sending tags when patching an entry will now remove all current tags & assocatied new ones.
* Add a real configuration for CS-FixerJeremy Benoist2017-07-018-60/+60
|
* Add RSS tags feedsJeremy Benoist2017-06-211-2/+6
|
* Merge pull request #2683 from wallabag/credentials-in-dbJérémy Benoist2017-06-201-0/+86
|\ | | | | Store credentials in DB
| * Fix reviewsThomas Citharel2017-06-201-2/+2
| | | | | | | | | | | | | | | | Encrypt username too Redirect to list after saving credentials Fix typos Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * Crypt site credential passwordJeremy Benoist2017-06-201-0/+86
| |