| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ /
| |
| |
| | |
Related to #1598
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This feature is based general.enable_async_metadata setting and works with existing metadata.js file.
The script is compatible with any template:
- the thumbnail div bloc must have attribute
- the bookmark bloc must have attribute with the bookmark ID as value
Fixes #1564
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
- Use dedicated function to download headers to avoid apply multiple regexps on headers
- Also try to extract title from meta tags
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- There is a new standalone script (metadata.js) which requests
a new controller to get bookmark metadata and fill the form async
- This feature is enabled with the new setting: general.enable_async_metadata
(enabled by default)
- general.retrieve_description is now enabled by default
- A small rotating loader animation has a been added to bookmark inputs
when metadata is being retrieved (default template)
- Custom JS htmlentities has been removed and mathiasbynens/he
library is used instead
Fixes #1563
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
How it works:
1. when a fulltext search is made, Shaarli looks for the first
occurence position of every term matching the search. No change here,
but we store these positions in an array, in Bookmark's additionalContent.
2. when formatting bookmarks (through BookmarkFormatter
implementation):
1. first we insert specific tokens at every search result positions
2. we format the content (escape HTML, apply markdown, etc.)
3. as a last step, we replace our token with displayable span
elements
Cons: this tightens coupling between search filters and formatters
Pros: it was absolutely necessary not to perform the
search twice. this solution has close to no impact on performances.
Fixes #205
|
|\ \ \ |
|
| | | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Shaarli can be fully used by prefixing any URL with /index.php/
- {$base_path} used in templates already works with this configuration
- Assets path (outside of theme's assets) must be prefixed with {$root_url}/
- Documentation section in « Server configuration »
Fixes #1590
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Parameters typing and using strict types overall increase the codebase
quality by enforcing the a given parameter will have the expected type.
It also removes the need to unnecessary unit tests checking methods
behavior with invalid input.
|
| |
| |
| |
| |
| |
| | |
To make sure that there is no concurrent operation on the datastore file.
Fixes #1132
|
|\ \
| | |
| | | |
Improve regex to extract HTML metadata (title, description, etc.)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Also added a bunch of tests to cover more use cases.
Fixes #1375
|
|\ \ \
| | | |
| | | | |
REST API: allow override of creation and update dates
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Note that if they're not provided, default behaviour will apply:
creation and update dates will be autogenerated, and not empty.
Fixes #1223
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra)
Also sort dependencies alphabetically.
Fixes #1169
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
XSS vulnerabilities fixed in editlink, linklist, tag.cloud and tag.list.
Also fixed tag search with special characters: urlencode function needs to be applied on raw data, before espaping, otherwise the rendered URL is wrong.
|
|\ \ \ \ |
|
| | | | | |
|
|\ \ \ \ \ |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The hoster writes the environment variable with bearer token to
REDIRECT_HTTP_AUTHORIZATION and needs to provide RewriteBase / to
.htaccess
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | | |
Also fixed the regex to support this failing header: charset="utf-8"\r\n"
|
| | | |
| | | |
| | | |
| | | | |
Fixes #1554
|
|\ \ \ \
| | | | |
| | | | | |
Fix redirection to referer after editing a link
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #1545
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This new setting under 'general.root_url' allows to override automatic discovery of Shaarli instance's URL.
Fixes #1339
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Properly handle 404 errors
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Use 404 template instead of default Slim error page if the route is not found.
Fixes #827
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Plugins: do not save metadata along plugin parameters
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Also prevent the token to be saved.
Fixes #1550
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
Used @nodiscc suggestion in #1148 (slightly edited).
It provides a description of what Shaarli does, Markdown rendering demo, and a thumbnail link.
Fixes #1148
|
|\ \ \ \
| | | | |
| | | | | |
Fix visibility issue on daily page
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | | |
This filter (links by day) didn't apply any visibility parameter.
Fixes #1543
|
|\ \ \ \
| | | | |
| | | | | |
Inject BookmarkServiceInterface in plugins data
|
| | | | |
| | | | |
| | | | |
| | | | | |
Related discussion: ilesinge/shaarli-related#7
|
|\ \ \ \ \ |
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | | |
When a bookmark is post from a logged out user, he is first redirected to the login page with 'returnurl' containing the link, then redirected again when the login is processed.
We need to reencode the posted URL, otherwise the browser does not handle the fragment as a part of the posted parameter.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
LegacyRouter is no longer used for routing, only in existing plugins to match the _PAGE_ parameter.
So we change a few of its values there, to match the new ones defined in TemplatePage.
@see discussion in shaarli/Shaarli#1537
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | | |
Also use ISO country code (JP) instead of JA.
|
|\ \ \ \ |
|