aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #880 from ArthurHoaro/hotfix/allowed-protocolsArthurHoaro2017-05-312-0/+25
|\ | | | | Add a whitelist of protocols for URLs
| * Add a whitelist of protocols for URLsArthurHoaro2017-05-252-0/+25
| | | | | | | | | | | | | | - for Shaare - for markdown description links and images Not whitelisted protocols will be replaced by `http://`
* | Merge pull request #841 from ArthurHoaro/feature/search-no-tagArthurHoaro2017-05-254-22/+44
|\ \ | | | | | | Empty tag search will look for not tagged links
| * | Empty tag search will look for not tagged linksArthurHoaro2017-05-254-22/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #784 From now, searching for tags with an empty value will return only not tagged links, with the search bar showing `x results [not tagged]`. Note that using the api, the searchtags request parameter must be set to `false` to get the same result. - [ ] Update API doc
* | | Adds a taglist view with edit/delete buttonsArthurHoaro2017-05-252-0/+37
| | | | | | | | | | | | | | | | | | * The tag list can be sort alphabetically or by most used tag * Edit/Delete are perform using AJAX, or fallback to 'do=changetag' page * New features aren't backported to vintage theme
* | | Add an endpoint to refresh the tokenArthurHoaro2017-05-251-0/+6
| | | | | | | | | | | | Useful for AJAX requests which burns the token
* | | Adding ability to display subtags in tagcloudLucas Cimon2017-05-242-5/+8
| |/ |/|
* | Use the new 'default' theme... as defaultArthurHoaro2017-05-091-15/+0
| | | | | | | | Fixes #866
* | Merge pull request #862 from ArthurHoaro/theme/tags-everywhereArthurHoaro2017-05-071-2/+12
|\ \ | | | | | | Inject tag list everywhere to make autocomplete work on the fixed search bar
| * | Inject tag list everywhere to make autocomplete work on the fixed search barArthurHoaro2017-05-071-2/+12
| | |
* | | Merge pull request #861 from ArthurHoaro/hotfix/import-shorturl-overrideArthurHoaro2017-05-071-0/+1
|\ \ \ | |/ / |/| | Fix a bug happening when importing links with override option
| * | Fix a bug happening when importing links with override optionArthurHoaro2017-05-071-0/+1
| | | | | | | | | | | | The shorturl would be set to null, generating a lot of warnings and breaking permalinks
* | | History: fix entries orderArthurHoaro2017-05-071-1/+0
| | |
* | | Reset the history file due to datetime format changeArthurHoaro2017-05-071-0/+11
| | |
* | | Add history entries for API endpointArthurHoaro2017-05-076-8/+19
|/ / | | | | | | CHANGED: datetime is now store as an object in history store file
* | API: Get History endpointArthurHoaro2017-05-071-0/+71
| | | | | | | | See http://shaarli.github.io/api-documentation/#links-history-get
* | Merge pull request #856 from ArthurHoaro/api/delete-linkArthurHoaro2017-05-071-0/+23
|\ \ | | | | | | API: add DELETE endpoint
| * | API: add DELETE endpointArthurHoaro2017-05-071-0/+23
| | | | | | | | | | | | | | | | | | Based on #840 See http://shaarli.github.io/api-documentation/\#links-link-delete
* | | Merge pull request #840 from ArthurHoaro/api/putLinkArthurHoaro2017-05-072-0/+68
|\| | | | | | | | REST API: implement PUT method
| * | REST API: implement PUT methodArthurHoaro2017-05-072-0/+68
| | | | | | | | | | | | | | | * Related to #609 * Documentation: http://shaarli.github.io/api-documentation/#links-link-put
* | | Merge pull request #764 from ArthurHoaro/feature/historyArthurHoaro2017-05-066-40/+294
|\ \ \ | | | | | | | | History mechanism
| * | | History: lazy loading for the history fileArthurHoaro2017-03-211-0/+17
| | | | | | | | | | | | | | | | Only read it when it's necessary
| * | | History mechanismArthurHoaro2017-03-213-1/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use case: rest API service * saved by default in data/history * same format as datastore.php * traced events: * save/edit/delete link * change settings or plugins settings * rename tag
| * | | Move database read/write to FileUtils class + additional unit testsArthurHoaro2017-03-213-39/+89
| | | |
* | | | Merge pull request #830 from ArthurHoaro/theme/timezoneArthurHoaro2017-04-252-57/+46
|\ \ \ \ | | | | | | | | | | Change timezone data structure send to the templates
| * | | | Change timezone data structure send to the templatesArthurHoaro2017-04-032-57/+46
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal of this is to be able to adapt the timezone form in template without hacking the HTML already rendered. * there are two arrays available: * `continents` which contains only a list of available continents * `cities` which contains a list of available timezone cities, associated with their continent Note: there are two distinct array because RainTPL doesn't support nested loop very well.
* | | | Use raw bytes for upload size hidden inputArthurHoaro2017-04-101-5/+6
| | | |
* | | | Fix offset check with link ID = 0ArthurHoaro2017-04-051-2/+2
| | | |
* | | | Fix a warning generated in return_bytes function and refactor itArthurHoaro2017-04-031-0/+89
| |_|/ |/| | | | | | | | | | | | | | It was multiplying a string containing a letter. Moved function to Utils.php and display a human readable limit size
* | | Merge pull request #742 from ArthurHoaro/api/postLinkArthurHoaro2017-04-013-3/+86
|\ \ \ | | | | | | | | REST API: implement POST link service
| * | | REST API: implement POST link serviceArthurHoaro2017-03-273-3/+86
| |/ /
* / / Theme: use format_date function for daily dateArthurHoaro2017-03-281-3/+5
|/ /
* | Merge pull request #816 from ArthurHoaro/project/master-versionArthurHoaro2017-03-222-10/+79
|\ \ | |/ |/| Use 'dev' version on the master branch
| * Set Shaarli's version only in shaarli_version.php fileArthurHoaro2017-03-211-2/+30
| |
| * Add an updateMethod to match the current remote branch for updatesArthurHoaro2017-03-121-0/+44
| |
| * Use 'dev' version on the master branchArthurHoaro2017-03-121-8/+5
| | | | | | | | Allowed check branches are now `latest` and `stable`.
* | Merge pull request #804 from ArthurHoaro/feature/atom-defaultArthurHoaro2017-03-213-2/+19
|\ \ | | | | | | Fixes #304: use atom feed as default
| * | Fixes #304: use atom feed as defaultArthurHoaro2017-03-113-2/+19
| | | | | | | | | | | | RSS feed is still available with the setting set to false
* | | Proper error if the conf file is invalid instead of fatal errorArthurHoaro2017-03-122-3/+13
| |/ |/| | | | | | | | | | | | | 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-111-9/+25
|\ \ | |/ |/| 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-101-9/+24
| | | | | | | | | | | | `dev.debug=true` setting related to #741 and #681
* | Fix #773: set Piwik URL protocolArthurHoaro2017-03-111-0/+17
|/
* Move config exception to dedicated classes with proper namespaceArthurHoaro2017-03-093-33/+44
|
* Fix blocking namespace issueArthurHoaro2017-03-082-15/+19
|
* Fix autoLocale error and cover it with unit testsArthurHoaro2017-03-071-13/+21
|
* Improve datetime displayArthurHoaro2017-03-061-20/+52
| | | | | | | | | | 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-9/+42
| | | | | | - 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-047-15/+18
| | | | | | | | | | | 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-281-0/+23
| | | | | | | | | | | | | 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