aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
Commit message (Collapse)AuthorAgeFilesLines
* Refactor client session hijacking protectionVirtualTam2018-05-291-12/+2
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Fix parameter order which was preventing max_dl parameter to work properlyArthurHoaro2018-05-011-1/+1
|
* Fix warning when trying to save redictor setting from the configure pageArthurHoaro2018-03-131-2/+0
| | | | | | It has been removed from the web page. Fixes #1099
* Merge pull request #1096 from ArthurHoaro/feature/download-paramsArthurHoaro2018-03-131-1/+6
|\ | | | | Make max download size and timeout configurable
| * Make max download size and timeout configurableArthurHoaro2018-03-071-1/+6
| | | | | | | | Fixes #1061
* | PSR: use elseif instead of else ifArthurHoaro2018-02-281-2/+2
|/ | | | See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
* Use a specific page title in all pagesArthurHoaro2018-02-241-2/+31
| | | | | | Also fixed a few French translation issues Fixes #954 #955
* Refactor login / ban authentication stepsVirtualTam2018-02-051-100/+16
| | | | | | | | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/issues/324 Added: - Add the `LoginManager` class to manage logins and bans Changed: - Refactor IP ban management - Simplify logic - Avoid using globals, inject dependencies Fixed: - Use `ban_duration` instead of `ban_after` when setting a new ban Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Merge pull request #1074 from kalvn/feature/dailymarkdownArthurHoaro2018-02-021-13/+16
|\ | | | | Executes daily hooks before creating columns.
| * Executes daily hooks before creating columns.kalvn2018-02-011-13/+16
| |
* | Merge pull request #1038 from ArthurHoaro/feature/public-only-filterArthurHoaro2018-02-021-11/+22
|\ \ | | | | | | Add a filter to only display public links
| * | Public/private filter: use two separate buttonsArthurHoaro2018-01-241-3/+13
| | | | | | | | | | | | #1038
| * | Add a filter to only display public linksArthurHoaro2017-12-161-11/+12
| | | | | | | | | | | | | | | | | | When the key filter is clicked once, it only displays private link. When it is clicked on again, it becomes red and only public links are displayed. Another click and all links are displayed. The current visibility status is shown in the search banner Fixes #1030
* | | Use LC_COLLATE instead of LC_MESSAGES if php-intl is not installedArthurHoaro2018-01-311-0/+5
| |/ |/| | | | | | | | | | | | | As stated in the docs: > LC_MESSAGES for system responses (available if PHP was compiled with libintl) Fixes #1067
* | Merge pull request #977 from ArthurHoaro/feature/dl-filterArthurHoaro2018-01-231-10/+4
|\ \ | | | | | | Extract the title/charset during page download, and check content type
| * | Extract the title/charset during page download, and check content typeArthurHoaro2017-10-281-10/+4
| | | | | | | | | | | | | | | | | | | | | Use CURLOPT_WRITEFUNCTION to check the response code and content type (only allow HTML). Also extract the title and charset during downloading chunk of data, and stop it when everything has been extracted. Closes #579
* | | Fix XSS vulnerabilityVirtualTam2018-01-041-1/+1
| |/ |/| | | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | Don't URL encode description links if parameter 'redirector.encode_url' is ↵ArthurHoaro2017-11-071-3/+15
| | | | | | | | set to false
* | Move session ID check to SessionManagerVirtualTam2017-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/issues/324 Changed: - `is_session_id_valid()` -> `SessionManager::checkId()` - update tests Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | Refactor session token managementVirtualTam2017-10-221-47/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/issues/324 Added: - `SessionManager` class to group session-related features - unit tests Changed: - `getToken()` -> `SessionManager->generateToken()` - `tokenOk()` -> `SessionManager->checkToken()` - inject a `$token` parameter to `PageBuilder`'s constructor Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* | Add language selection in the configure page of the default themeArthurHoaro2017-10-221-3/+10
| |
* | Shaarli's translationArthurHoaro2017-10-221-30/+48
| | | | | | | | | | | | | | | | | | * translation system and unit tests * Translations everywhere Dont use translation merge It is not available with PHP builtin gettext, so it would have lead to inconsistency.
* | Merge pull request #987 from ArthurHoaro/hotfix/security-issueArthurHoaro2017-10-071-2/+2
|\ \ | | | | | | Fix security issue reported by @chb9
| * | Fix security issue reported by @chbiArthurHoaro2017-10-071-2/+2
| |/ | | | | | | Vulnerability introduced by 6ccd0b218fbd34de750f55b78f3dc43bb3d9fa8e - release with Shaarli v0.9.1.
* | Merge pull request #979 from ArthurHoaro/feature/assets-cache-versionVirtualTam2017-10-061-1/+1
|\ \ | | | | | | Add a version hash for asset loading to prevent browser's cache issue
| * | Rename shaarli_version constant to uppercaseArthurHoaro2017-10-011-1/+1
| |/
* / Allow setting of a default note title, see #963Mark Gerarts2017-10-011-1/+1
|/
* added option to redirect all anonymous users to login pageWilli Eggeling2017-09-031-0/+17
| | | | | | - new setting *force_login* added and documented - if both, *force_login* and *hide_public_links* are set to true, all requests (except for the feeds) are redirected to the login page
* Merge pull request #939 from ArthurHoaro/hotfix/firefox-social-titleArthurHoaro2017-09-021-3/+3
|\ | | | | Firefox Social title: Use document.title instead of RainTPL variable
| * Make work behind a reverse proxyArthurHoaro2017-09-021-3/+3
| | | | | | | | Without HTTP_X_FORWARDED_PORT check, might be set to false even though the user is using HTTPS, thus disabling Firefox Social block display
* | Merge pull request #950 from thewilli/delete-fixArthurHoaro2017-09-011-3/+10
|\ \ | | | | | | fixed link deletion
| * | fixed link deletionWilli Eggeling2017-08-301-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | When deleting links, the js of the default theme separated ids by an escaped space ('+'). There was a trailing '+' after the ids which led to the php code detecting multiple values even for single values. In combination with the id '0' this could led to no id found at all and a resulting php error. this commit fixes the behavior and adds an additional error handling and trimming to the php code.
* | | Merge pull request #951 from thewilli/fix-dailyArthurHoaro2017-09-011-23/+31
|\ \ \ | | | | | | | | fixed daily links if there are no links
| * | | fixed daily links if there are no linksWilli Eggeling2017-08-301-23/+31
| |/ / | | | | | | | | | | | | | | | - the previous code tried to use links from a previous day if there are no one for the current one - the new code skips this part if there are no entries (i.e. days) at all - modified showDaily() to fit PSR-1 and PSR-2
* | | Merge pull request #944 from thewilli/configure-remembermeVirtualTam2017-08-271-0/+2
|\ \ \ | |/ / |/| | new setting: default value for 'remember me' checkbox
| * | new setting: default value for 'remember me' checkboxWilli Eggeling2017-08-271-0/+2
| | | | | | | | | | | | | | | | | | - the default state for the login page's 'remember me' checkbox can now be configured - adapted the default and vintage theme to consider the new setting - added documentation for the new setting
* | | Merge pull request #940 from ArthurHoaro/hotfix/empty-urlsVirtualTam2017-08-271-0/+3
|\ \ \ | | | | | | | | Generates a permalink URL if the URL is set to blank
| * | | Generates a permalinks URL if the URL is set to blankArthurHoaro2017-08-251-0/+3
| | |/ | |/| | | | | | | Fixes #926
* | | Merge pull request #942 from thewilli/fix-wiki-linksVirtualTam2017-08-271-3/+3
|\ \ \ | | | | | | | | migrated Github wiki links to readthedocs
| * | | migrated Github wiki links to readthedocsWilli Eggeling2017-08-261-3/+3
| | |/ | |/|
* | | code clean: cookie expirationWilli Eggeling2017-08-261-42/+43
| | | | | | | | | | | | | | | | | | - unified code style (spaces around operators) - prevented expiration time to be calculated twice - replaced tabs with spaces
* | | removed doc and code references to magic quotesWilli Eggeling2017-08-261-9/+0
|/ / | | | | | | | | | | - removed all references to magic quotes - magic quotes are not supported on PHP >= 5.4 (https://secure.php.net/manual/en/security.magicquotes.php) - Shaarli does not support PHP < 5.5
* / Sort tag cloud in alphabetical orderArthurHoaro2017-08-251-1/+1
|/ | | | Fixes #932
* Fix untagged only buttonArthurHoaro2017-08-191-1/+1
|
* Adding missing empty() as spotted in #889 code reviewLucas Cimon2017-08-061-1/+1
|
* Merge pull request #887 from ArthurHoaro/hotfix/dash-tag-renameArthurHoaro2017-08-051-40/+18
|\ | | | | Make sure that the tag exists before altering/removing it
| * Move tag renaming code to LinkDB and unit test itArthurHoaro2017-08-051-36/+14
| |
| * Refactoring of CHANGETAG part to avoid duplicated codeArthurHoaro2017-05-311-34/+27
| |
| * Make sure that the tag exists before altering/removing itArthurHoaro2017-05-311-10/+17
| | | | | | | | Fixes #886
* | Using only one form in linklist.html + adding untaggedonly filter - fix #885Lucas Cimon2017-07-301-1/+15
| |