]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Fix empty title and domain_name when exception is thrown during fetch
authorKevin Decherf <kevin@kdecherf.com>
Sun, 26 Nov 2017 22:20:23 +0000 (23:20 +0100)
committerKevin Decherf <kevin@kdecherf.com>
Wed, 13 Dec 2017 21:44:31 +0000 (22:44 +0100)
commitaf29e1bf07aabaa6a4e4653c1a3b5c10ce831bb6
treeb4e0a8e01717f3d8d96138033bf8ce1696a127a7
parent70265817aee257e7e635eda79ce3e037e3b4a242
Fix empty title and domain_name when exception is thrown during fetch

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>
src/Wallabag/ApiBundle/Controller/EntryRestController.php
src/Wallabag/CoreBundle/Controller/EntryController.php
src/Wallabag/CoreBundle/Helper/ContentProxy.php
tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php