| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Relates to https://github.com/shaarli/Shaarli/issues/607
Modifications:
- [application][tests] NetscapeBookmarkUtils: more permissive doctype detection
The IE bookmark exports contain extra escape sequences, which can be observed
by binary comparison of the reference input data used in tests:
$ cmp -b -l -n 8 netscape_basic.htm internet_explorer_encoding.htm
1 74 < 357 M-o
2 41 ! 273 M-;
3 104 D 277 M-?
4 117 O 74 <
5 103 C 41 !
6 124 T 104 D
7 131 Y 117 O
8 120 P 103 C
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Relates to #607
Relates to #608
Relates to #493 (abandoned)
Additions:
- use Composer's autoload to load 3rd-party dependencies under vendor/
Modifications:
- [import] replace the current parser with a generic, stable parser
- move code to application/NetscapeBookmarkUtils
- improve status report after parsing
- [router] use the same endpoint for both bookmark upload and import dialog
- [template] update bookmark import options
- allow adding tags to all imported links
- allow selecting the visibility (privacy) of imported links
- [tests] ensure bookmarks are properly parsed and imported in the LinkDB
- reuse reference input from the parser's test data
See:
- https://github.com/shaarli/netscape-bookmark-parser
- https://getcomposer.org/doc/01-basic-usage.md#autoloading
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\
| |
| | |
Added (and set as default) a cURL-based method for fetching HTTP content
|
| |
| |
| |
| | |
fixup between both methods
|
| |
| |
| |
| | |
It matches the API of ngettext().
|
|/ |
|
|\
| |
| | |
Fix update method escapeUnescapedConfig
|
| |
| |
| |
| |
| |
| |
| | |
* Actually run it
* unit tests
Fixes #611
|
| |
| |
| |
| |
| |
| | |
Correct PR #573 to work properly with hidden tags, and add ReferenceLinkDB UT.
Fixes #571 - Closes #573
|
|/ |
|
|
|
|
|
| |
- Fixed title config key
- Page title (in head tag) is no longer set through the config manager
|
|\
| |
| | |
Hashtag system
|
| |
| |
| |
| |
| |
| | |
* Hashtag are auto-linked with a filter search
* Supports unicode
* Compatible with markdown (excluded in code blocks)
|
|\ \
| |/
|/| |
Introduce a configuration manager
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Except for those which require external data (timezone and $_SERVER).
|
| | |
|
| | |
|
| |
| |
| |
| | |
Also use the Updater to make the transition
|
| |
| |
| |
| | |
code base
|
| | |
|
|\ \
| | |
| | | |
Fixes #497: ignore case difference between tags
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
While retrieving all tags, case differences will be ignored.
This affects:
* tag cloud
* tag autocompletion
|
| |/
|/|
| |
| | |
update test case
|
|\ \
| | |
| | | |
Private links counter in the header
|
| | | |
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Relates to #102
Additions:
- application:
- export: allow prepending note permalinks with the instance's URL
- test coverage
Modifications:
- export template: switch to an HTML form
- link selection (all/private/public)
- prepend note permalinks with the instance's URL
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
| | |
|
|\ \
| | |
| | | |
Use correct 'UTC' timezone
|
| | | |
|
|\ \ \
| | | |
| | | | |
Fixes #531 - Title retrieving is failing with multiple use case
|
| | |/
| |/|
| | |
| | | |
see https://github.com/shaarli/Shaarli/issues/531 for details
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Arrays are key-value maps. We should reindex the array after a filter
since we are using the key and count to do array access in filterTags.
An example would be searching for "foo, bar", after the array filter,
our array is actually (0 -> foo, 2 -> bar) which will cause an error
when trying to access $searchtags[1].
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Relates to https://github.com/shaarli/netscape-bookmark-parser/issues/5
Fixes:
- respect the Netscape bookmark format "specification"
Modifications:
- [application] introduce the NetscapeBookmarkUtils class
- [template] export - improve formatting, rename export selection parameter
- [template] export.bookmarks - template for Netscape exports
- [tests] bookmark filtering, additional field generation
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|/
|
|
|
|
|
|
| |
* New config: `$GLOBALS['config']['REDIRECTOR_URLENCODE']` (default `true`).
* Parameter added to LinkDB constructor.
* Fixes a bug with urlencode and escaped url.
* In `index.php`, LinkDB is now instanciate once for `importFile()` and `showDaily()`.
* TU
|
|\
| |
| | |
Refactor and rebase #380: Firefox reader view links
|
| |
| |
| |
| |
| | |
Fixes #366
Closes #380
|
| | |
|
|\ \
| |/
|/| |
Refactor RSS feeds generation, and do it through templates
|
| |
| |
| |
| |
| |
| |
| |
| | |
* search type now carried by LinkDB in order to factorize code between different search sources.
* LinkDB->filter split in 3 method: filterSearch, filterHash, filterDay (we know what type of filter is needed).
* filterHash now throw a LinkNotFoundException if it doesn't exist: internal implementation choice, still displays a 404.
* Smallhash regex has been rewritten.
* Unit tests update
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Minor changes:
* Fix the date which was in a invalid format.
* Avoid empty categories (tags).
* Use the locale to set the language
|
| | |
|