| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Isolate functions related to config in Config.php + add unit tests + code_sniffer.
options.php is not supported anymore, but its content will be automatically saved into config.php
Fixes #shaarli/Shaarli#41
*TODO*: update [documentation](https://github.com/shaarli/Shaarli/wiki#configuration).
|
|
|
|
|
|
|
|
|
|
|
| |
Relates to #218
Removes "hidden" access to the following variables:
- $GLOBALS['config']['datastore']
- PHPPREFIX
- PHPSUFFIX
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|
|
|
| |
prevents 'PHP Fatal error: Call to undefined function sanitizeLink() in Shaarli/application/LinkDB.php on line 255' in tests
|
|\
| |
| |
| |
| | |
Conflicts:
index.php
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
I reviewed character escaping everywhere with the following ideas:
* use a single common function to escape user data: `escape` using `htmlspecialchars`.
* sanitize fields in `index.php` after reading them from datastore and before sending them to templates.
It means no escaping function in Twig templates.
2 reasons:
* it reduces risks of security issue for future user made templates
* more readable templates
* sanitize user configuration fields after loading them.
|
| |
| |
| |
| |
| |
| |
| | |
Fixes #236
Relates to #237
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|/
|
|
| |
Fixes #232
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
It only concerns the date of the day in the main title.
Fixes #182
Note that daily RSS feed is not generated through templates. Date are still hard formatted in that case.
|
|\ \
| | |
| | |
| | |
| | | |
Conflicts:
index.php
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Relates to #71
LinkDB
- move to application/LinkDB.php
- code cleanup
- indentation
- whitespaces
- formatting
- comment cleanup
- add missing documentation
- unify formatting
Test coverage for LinkDB
- constructor
- public / private access
- link-related methods
Shaarli utilities (LinkDB dependencies)
- move startsWith() and endsWith() functions to application/Utils.php
- add test coverage
Dev utilities
- Composer: add PHPUnit to dev dependencies
- Makefile:
- update lint targets
- add test targets
- generate coverage reports
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
|
|\ \ |
|
| |/ |
|
|/ |
|
|
|
|
|
|
|
|
| |
* utm_content=
* fb=
* xtor=
closes https://github.com/shaarli/Shaarli/issues/136
|
|\ |
|
| |
| |
| |
| | |
>searchtags
|
|\ \ |
|
| |/ |
|
|/
|
|
|
|
|
|
|
| |
On "The Daily Shaarli" page (index.php?do=daily), the date is "Tuesday
30, November 1999" if no articles have been published/shared.
This patch checks the parameter ($linkdate) before the mktime call to
prevent and generate the "day 0" string.
mktime(0,0,0,0,0,0) returns 943916400 (hum?)
|
| |
|
|\ |
|
| | |
|
|\ \ |
|
| |/ |
|
|\ \
| |/
|/| |
|
| | |
|
|/
|
|
| |
Fix https://github.com/shaarli/Shaarli/issues/184
|
| |
|
|
|
|
|
|
|
|
| |
Define date format in templates instead of index.php.
Conflicts:
index.php
tpl/dailyrss.html
|
|\
| |
| |
| |
| |
| |
| | |
Fixes https://github.com/shaarli/Shaarli/issues/177
Merge commit '3ea318dad05954e2043d5bb2f8572b103d7c3930' into notes-absolute-url
Conflicts:
index.php
|
| |
| |
| |
| |
| | |
The deletion is related to Windows not handling quotes in filenames, see
#179. It shouldn't delete the real file. Probably. Check it out.
|
| | |
|
|/ |
|
| |
|
|\ |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add awesomplete dependancy (source + min + CSS)
* Remove jQuery and jQuery-UI dependancy
* Few CSS ajustements
* Use tags complete list as RainTPL var (and display it as HTML)
* Remove "disable jQuery" feature
* Remove tag list web service
|
|\ \
| |/
|/| |
allow 'javascript:' links sharing (bookmarklets)
|
| | |
|
| |
| |
| |
| | |
* Fixes https://github.com/shaarli/Shaarli/issues/115
|
|\ \
| | |
| | | |
Add URL cleaning filters + refactoring
|
| | |
| | |
| | |
| | | |
* also remove action_type_map, action_ref_map and action_object maps params used by facebook
|
| | |
| | |
| | |
| | |
| | |
| | | |
* Use regular expressions to avoid suplicating params depending on their position in the URL (¶m=,?param=)
* Only remove the relevant URL pattern and don't remove following params, fixes https://github.com/shaarli/Shaarli/issues/136
* Credits to Marcus Rohrmoser (https://github.com/mro)
|
| | |
| | |
| | |
| | | |
* fixes https://github.com/shaarli/Shaarli/issues/133
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| | |
* Remove jquery.lazyload lib
* Add blazy lib
* Add a bit of CSS animation
* Delete unused picwall2 template
|
| |
| |
| |
| |
| |
| |
| | |
* fixes https://github.com/shaarli/Shaarli/issues/122
* the shaarli version is now in a php comment block, which prevents
visitors from reading it when it is place on a PHP-enabled server, but
still allows the update mechanism to read it from the source on github.
|