aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add mutex on datastore I/O operationsArthurHoaro2020-10-1318-41/+92
| | | | | | | | | | | | To make sure that there is no concurrent operation on the datastore file. Fixes #1132
* | Merge pull request #1540 from ArthurHoaro/fix/metadata-regexesArthurHoaro2020-10-131-0/+89
|\ \ | | | | | | Improve regex to extract HTML metadata (title, description, etc.)
| * | Improve regex to extract HTML metadata (title, description, etc.)ArthurHoaro2020-09-031-0/+89
| | | | | | | | | | | | | | | | | | Also added a bunch of tests to cover more use cases. Fixes #1375
* | | Merge pull request #1525 from ArthurHoaro/feature/rest-api-bookmark-datesArthurHoaro2020-10-131-4/+4
|\ \ \ | | | | | | | | REST API: allow override of creation and update dates
| * | | REST API: allow override of creation and update datesArthurHoaro2020-08-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that if they're not provided, default behaviour will apply: creation and update dates will be autogenerated, and not empty. Fixes #1223
* | | | Add Markdown Extra formatterArthurHoaro2020-10-132-1/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Library: [Parsedown Extra](https://github.com/erusev/parsedown-extra) Also sort dependencies alphabetically. Fixes #1169
* | | | Merge pull request #1575 from ArthurHoaro/feature/php8ArthurHoaro2020-10-03111-287/+368
|\ \ \ \
| * | | | Use assertRegExp polyfill instead of regexMatchesArthurHoaro2020-09-291-1/+2
| | | | |
| * | | | Fix missing @expectedException convertionArthurHoaro2020-09-298-20/+14
| | | | |
| * | | | Compatibility with PHP 8ArthurHoaro2020-09-293-18/+7
| | | | |
| * | | | Compatibility with PHPUnit 9ArthurHoaro2020-09-29110-249/+346
| | | | |
* | | | | Merge pull request #1574 from stoeps13/hosting-fixArthurHoaro2020-10-031-0/+47
|\ \ \ \ \
| * | | | | Revert unrelated changes and add unit testsArthurHoaro2020-09-301-0/+47
| |/ / / /
* | | | | Fix a bug preventing to edit bookmark with ID #0ArthurHoaro2020-09-301-0/+24
| | | | |
* | | | | Merge pull request #1569 from ArthurHoaro/fix/bad-encodingArthurHoaro2020-09-301-0/+13
|\ \ \ \ \ | |/ / / / |/| | | | Fix warning if the encoding retrieved from external headers is invalid
| * | | | Fix warning if the encoding retrieved from external headers is invalidArthurHoaro2020-09-301-0/+13
| | | | | | | | | | | | | | | | | | | | Also fixed the regex to support this failing header: charset="utf-8"\r\n"
* | | | | Convert legacy PHPUnit @expected* to new ->expect*ArthurHoaro2020-09-2721-170/+183
| | | | | | | | | | | | | | | | | | | | Converted automatically using https://github.com/ArthurHoaro/convert-legacy-phpunit-expect
* | | | | Comply with PHPUnit V8: setup/teardown functions must return voidArthurHoaro2020-09-2647-72/+72
|/ / / /
* | | | Merge pull request #1560 from ArthurHoaro/fix/redirect-wrong-pathArthurHoaro2020-09-254-16/+47
|\ \ \ \ | | | | | | | | | | Fix invalid redirection using the path of an external domain
| * | | | Fix invalid redirection using the path of an external domainArthurHoaro2020-09-224-16/+47
| | | | | | | | | | | | | | | | | | | | Fixes #1554
* | | | | Merge pull request #1558 from ArthurHoaro/fix/plugins-base-pathArthurHoaro2020-09-252-21/+39
|\ \ \ \ \ | |/ / / / |/| | | | Fix plugin base path in core plugins
| * | | | Fix plugin base path in core pluginsArthurHoaro2020-09-222-21/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix note check in archiveorg plugin, and regression on vintage template. Documentation regarding relative path has been added. Fixes #1548
* | | | | Merge pull request #1539 from ArthurHoaro/feature/manual-root-urlArthurHoaro2020-09-229-20/+140
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Fix subfolder configuration in unit testsArthurHoaro2020-09-127-19/+54
| | | | |
| * | | | Add manual configuration for root URLArthurHoaro2020-09-122-1/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new setting under 'general.root_url' allows to override automatic discovery of Shaarli instance's URL. Fixes #1339
* | | | | Merge pull request #1553 from ArthurHoaro/fix/404-pageArthurHoaro2020-09-123-1/+83
|\ \ \ \ \ | | | | | | | | | | | | Properly handle 404 errors
| * | | | | Properly handle 404 errorsArthurHoaro2020-09-123-1/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use 404 template instead of default Slim error page if the route is not found. Fixes #827
* | | | | | Merge pull request #1551 from ArthurHoaro/fix/plugin-save-metadataArthurHoaro2020-09-123-17/+35
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | Plugins: do not save metadata along plugin parameters
| * | | | | Plugins: do not save metadata along plugin parametersArthurHoaro2020-09-123-17/+35
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Also prevent the token to be saved. Fixes #1550
* | | | | Merge pull request #1552 from ArthurHoaro/feature/better-initializerArthurHoaro2020-09-122-29/+59
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Improve default bookmarks after installArthurHoaro2020-09-102-29/+59
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Used @nodiscc suggestion in #1148 (slightly edited). It provides a description of what Shaarli does, Markdown rendering demo, and a thumbnail link. Fixes #1148
* | | | Merge pull request #1547 from ArthurHoaro/fix/daily-visibilityArthurHoaro2020-09-062-2/+42
|\ \ \ \ | | | | | | | | | | Fix visibility issue on daily page
| * | | | Fix visibility issue on daily pageArthurHoaro2020-09-062-2/+42
| |/ / / | | | | | | | | | | | | | | | | | | | | This filter (links by day) didn't apply any visibility parameter. Fixes #1543
* | | | Merge pull request #1537 from ArthurHoaro/fix/back-compatible-targetsArthurHoaro2020-09-032-515/+3
|\ \ \ \ | |/ / / |/| | |
| * | | Fix feed target in UTArthurHoaro2020-09-031-3/+3
| | | |
| * | | Improve backward compatibility for LegacyRouterArthurHoaro2020-09-031-512/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge pull request #1523 from ArthurHoaro/fix/default-colors-generationArthurHoaro2020-09-031-9/+10
|\ \ \ \ | | | | | | | | | | Default colors plugin: generate CSS file during initialization
| * | | | Default colors plugin: generate CSS file during initializationArthurHoaro2020-08-291-9/+10
| | |/ / | |/| | | | | | | | | | | | | | Current behaviour only generate the custom CSS file when the plugin settings are saved, which can be annoying if the file is deleted but the settings are set. Most common use case is Docker deployment, because the plugin directory is not mounted as a volume.
* | | | Merge pull request #1520 from ArthurHoaro/fix/jp-languageArthurHoaro2020-09-031-1/+1
|\ \ \ \
| * | | | Fix UTArthurHoaro2020-08-271-1/+1
| |/ / /
* | | | Merge pull request #1524 from ArthurHoaro/fix/rss-stickyArthurHoaro2020-09-031-6/+6
|\ \ \ \ | | | | | | | | | | Fixed: Pinned bookmarks are displayed first in ATOM/RSS feeds
| * | | | Fixed: Pinned bookmarks are displayed first in ATOM/RSS feedsArthurHoaro2020-08-291-6/+6
| |/ / / | | | | | | | | | | | | Fixes #1485
* | | | Merge pull request #1534 from ArthurHoaro/fix/legacy-route-postArthurHoaro2020-09-031-3/+5
|\ \ \ \ | |_|/ / |/| | |
| * | | Support redirection of legacy route 'do=configure'ArthurHoaro2020-09-011-0/+2
| | | |
| * | | Fix legacy redirection when Shaarli instance is under a subfolderArthurHoaro2020-09-011-3/+3
| | | |
| * | | Fix support for legacy route login redirectionArthurHoaro2020-09-011-3/+3
| |/ / | | | | | | | | | Makes sure that the user is properly redirected to the bookmark form after login, even with legacy routes
* / / Fix broken route to filter not tagged bookmarksArthurHoaro2020-08-311-6/+7
|/ / | | | | | | | | | | Also display the filter for visitors. Fixes #1529
* | Better handling of plugin incompatibilityArthurHoaro2020-08-273-15/+42
| | | | | | | | | | If a PHP is raised while executing plugin hook, Shaarli will display an error instead of rendering the error page (or just ending in fatal error for default hooks). Also added phpErrorHandler which is handled differently that regular errorHandler by Slim.:
* | Move error handling to dedicated controller instead of middlewareArthurHoaro2020-08-212-15/+84
| |
* | Move all admin controller into a dedicated groupArthurHoaro2020-08-136-69/+154
| | | | | | | | Also handle authentication check in a new middleware for the admin group.