aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Theme: use format_date function for daily dateArthurHoaro2017-03-283-5/+59
|
* Merge pull request #828 from ArthurHoaro/project/master-versionArthurHoaro2017-03-221-1/+1
|\ | | | | Fix version check branch for UT
| * Fix version check branch for UTArthurHoaro2017-03-221-1/+1
| |
* | Merge pull request #816 from ArthurHoaro/project/master-versionArthurHoaro2017-03-221-7/+40
|\| | | | | Use 'dev' version on the master branch
| * Set Shaarli's version only in shaarli_version.php fileArthurHoaro2017-03-211-7/+29
| |
| * Use 'dev' version on the master branchArthurHoaro2017-03-121-0/+11
| | | | | | | | Allowed check branches are now `latest` and `stable`.
* | Merge pull request #804 from ArthurHoaro/feature/atom-defaultArthurHoaro2017-03-211-0/+45
|\ \ | | | | | | Fixes #304: use atom feed as default
| * | Fixes #304: use atom feed as defaultArthurHoaro2017-03-111-0/+45
| | | | | | | | | | | | RSS feed is still available with the setting set to false
* | | Proper error if the conf file is invalid instead of fatal errorArthurHoaro2017-03-121-1/+1
| |/ |/| | | | | | | | | | | | | Error: An error occurred while parsing configuration JSON file (data/config.json.php): error code #4 ➜ Syntax error Please check your JSON syntax (without PHP comment tags) using a JSON lint tool such as jsonlint.com.
* | Merge pull request #779 from ArthurHoaro/feature/import-parser-logsArthurHoaro2017-03-112-18/+26
|\ \ | |/ |/| Link imports are now logged in `data/` folder, and can be debug using…
| * Fix namespace issueArthurHoaro2017-03-101-0/+1
| |
| * Link imports are now logged in `data/` folder, and can be debug using ↵ArthurHoaro2017-03-102-18/+25
| | | | | | | | | | | | `dev.debug=true` setting related to #741 and #681
* | Fix #773: set Piwik URL protocolArthurHoaro2017-03-111-0/+41
|/
* Move config exception to dedicated classes with proper namespaceArthurHoaro2017-03-091-1/+1
|
* Fix blocking namespace issueArthurHoaro2017-03-081-4/+2
|
* Fix autoLocale error and cover it with unit testsArthurHoaro2017-03-073-0/+228
|
* Improve datetime displayArthurHoaro2017-03-065-11/+117
| | | | | | | | | | Use php-intl extension to display datetimes a bit more nicely, depending on the locale. What changes: * the day is no longer displayed * day number and month are ordered according to the locale * the timezone is more readable (UTC+1 instead of CET)
* Improve autoLocale() detectionArthurHoaro2017-03-061-0/+20
| | | | | | - Creates arrays_combination function to cover all cases - add the underscore separator in the regex - add `utf8` encoding in addition to `UTF-8`
* application: introduce the Shaarli\Config namespaceVirtualTam2017-03-0417-29/+41
| | | | | | | | | | | Namespaces have been introduced with the REST API, and should be generalized to the whole codebase to manage object scope and benefit from autoloading. See: - https://secure.php.net/manual/en/language.namespaces.php - http://www.php-fig.org/psr/psr-4/ Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add markdown_escape settingArthurHoaro2017-02-283-9/+120
| | | | | | | | | | | | | This setting allows to escape HTML in markdown rendering or not. The goal behind it is to avoid XSS issue in shared instances. More info: * the setting is set to true by default * it is set to false for anyone who already have the plugin enabled (avoid breaking existing entries) * improve the HTML sanitization when the setting is set to false - but don't consider it XSS proof * mention the setting in the plugin README
* Set the vintage theme by default for the time beingArthurHoaro2017-02-271-0/+40
|
* REST API: implements getLink by ID serviceArthurHoaro2017-02-192-6/+137
| | | | See http://shaarli.github.io/api-documentation/#links-link-get
* REST API - getLinks: support the visibility parameterArthurHoaro2017-01-171-28/+22
|
* Update LinkFilter to be able to filter only public linksArthurHoaro2017-01-161-10/+63
| | | | | | No update regarding the UI or the API for now Fixes #758
* Remove CSS call for addlink toolbar pluginArthurHoaro2017-01-151-40/+0
| | | | Fixes #724
* Merge pull request #727 from ArthurHoaro/api/getlinksArthurHoaro2017-01-152-0/+458
|\ | | | | REST API: implement getLinks service
| * REST API: implement getLinks serviceArthurHoaro2017-01-152-0/+458
| | | | | | | | See http://shaarli.github.io/api-documentation/#links-links-collection-get
* | API: expect JWT in the Authorization headerVirtualTam2017-01-151-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/pull/731 Added: - require the presence of the 'Authorization' header Changed: - use the HTTP Bearer Token authorization schema See: - https://jwt.io/introduction/#how-do-json-web-tokens-work- - https://tools.ietf.org/html/rfc6750 - http://security.stackexchange.com/q/108662 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | Merge pull request #732 from ArthurHoaro/feature/theme-managerArthur2017-01-064-1/+105
|\ \ | | | | | | Theme manager: improvements
| * | Updater: keep custom theme preference with the new theme settingArthurHoaro2017-01-053-44/+99
| | |
| * | Minor improvements regarding #705 (coding style, unit tests, etc.)ArthurHoaro2017-01-053-1/+47
| | |
| * | Change templates set through administration UIKnah Tsaeb2017-01-051-0/+3
| |/
* | Cleanup: explicit method visibilityVirtualTam2017-01-0511-58/+54
| | | | | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | API: fix JWT signature verificationVirtualTam2017-01-041-6/+9
|/ | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/shaarli/Shaarli/issues/737 Added: - Base64Url utilities Fixed: - use URL-safe Base64 encoding/decoding functions - use byte representations for HMAC digests - all JWT parts are Base64Url-encoded See: - https://en.wikipedia.org/wiki/JSON_Web_Token - https://tools.ietf.org/html/rfc7519 - https://scotch.io/tutorials/the-anatomy-of-a-json-web-token - https://jwt.io/introduction/ - https://en.wikipedia.org/wiki/Base64#URL_applications - https://secure.php.net/manual/en/function.base64-encode.php#103849 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Merge pull request #733 from ArthurHoaro/hotfix/reverse-proxy-portArthur2017-01-041-0/+13
|\ | | | | Hide default ports in local URL behind a reverse proxy
| * Hide default port in local URL behind a reverse proxyArthurHoaro2017-01-031-0/+13
| |
* | URL cleanup: add 'campaign_' to the annoying parametersVirtualTam2017-01-041-34/+68
|/ | | | | | Closes https://github.com/shaarli/Shaarli/issues/735 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Fixes presence of empty tags for private tags and in search resultsArthurHoaro2017-01-031-1/+13
| | | | | | | * Private tags: make sure empty tags are properly filtered * Search results: * Use preg_split instead of function combination * Add normalize_spaces to remove extra whitespaces displaying empty tags search
* Move PubSubHubbub code as a default pluginArthurHoaro2016-12-202-14/+54
|
* REST API structure using Slim frameworkArthurHoaro2016-12-153-0/+503
| | | | | | * REST API routes are handle by Slim. * Every API controller go through ApiMiddleware which handles security. * First service implemented `/info`, for tests purpose.
* Prepare settings for the API in the admin page and during the installArthurHoaro2016-12-122-2/+55
| | | | | | | | API settings: - api.enabled - api.secret The API settings will be initialized (and the secret generated) with an update method.
* Add a persistent 'shorturl' key to all linksArthurHoaro2016-12-126-48/+59
| | | | | | | All existing link will keep their permalinks. New links will have smallhash generated with date+id. The purpose of this is to avoid collision between links due to their creation date.
* Unit Test for the new ID systemArthurHoaro2016-12-128-95/+306
|
* Merge pull request #691 from ArthurHoaro/plugins/no-md-feedArthur2016-12-011-4/+25
|\ | | | | Markdown: fixes feed rendering with nomarkdown tag
| * Markdown: fixes feed rendering with nomarkdown tagArthurHoaro2016-11-221-4/+25
| | | | | | | | | | | | | | | | | | | | | | * make sure we match exactly `nomarkdown` tag * pass the whole link data to stripNoMarkdownTag() to: * strip the noMD tag in taglist (array) * strip the tag in tags (string) Fixes #689 tmp
* | .htaccess files: support Apache 2.4+ syntaxArthurHoaro2016-11-081-2/+13
|/ | | | | | | | | | | | | | | If `mod_version` is enabled, the previous syntax will apply for Apache <2.4. If not, the new syntax is used by default. Fixes #676 `mod_version` identifier is `version_module` across all Apache versions. See: * https://httpd.apache.org/docs/current/mod/mod_version.html * https://httpd.apache.org/docs/2.2/mod/mod_version.html * https://serverfault.com/questions/733910/how-do-i-load-mod-version-only-if-it-isnt-built-in-to-apache Note that version_module comes built-in with Debian (and derivatives) Apache2 packages, see https://wiki.debian.org/Apache/PackagingFor24
* Fix an issue with links not being reversed in code blocksArthurHoaro2016-10-223-0/+61
| | | | | | Fixes #672 + Markdown to HTML unit test
* Merge pull request #673 from virtualtam/cleanup/linkdbVirtualTam2016-10-212-5/+5
|\ | | | | LinkDB: code cleanup
| * LinkDB: explicit method visibilityVirtualTam2016-10-201-1/+1
| | | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/issues/95 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
| * LinkDB: update datastore method namesVirtualTam2016-10-201-4/+4
| | | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/issues/95 Signed-off-by: VirtualTam <virtualtam@flibidi.net>