]>
git.immae.eu Git - github/shaarli/Shaarli.git/log
ArthurHoaro [Sat, 25 Jul 2015 11:15:47 +0000 (13:15 +0200)]
Avoid Full Path Disclosure error on session error.
* Add a function to validate session ID.
* Generate a new session ID if an invalid token is passed.
VirtualTam [Mon, 17 Aug 2015 22:35:42 +0000 (00:35 +0200)]
Bump version to 0.5.1
Minor changes
- fix 404 after editing a link while being logged out
- update local documentation
- improve timezone detection at installation
- improve feed cache handling
- improve URL cleanup for new links
- add a link to the shaarli/shaarli DockerHub repository
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Mon, 17 Aug 2015 22:33:25 +0000 (00:33 +0200)]
Doc: sync from Wiki, generate HTML
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Sun, 16 Aug 2015 21:01:54 +0000 (23:01 +0200)]
Merge pull request #314 from shaarli/clean-utm_term
clean utm_term url parameter
VirtualTam [Sun, 16 Aug 2015 12:50:16 +0000 (14:50 +0200)]
README: add DockerHub badge
See [docker-shaarli](https://github.com/shaarli/docker-shaarli) for Dockerfiles and documentation
VirtualTam [Thu, 13 Aug 2015 23:14:07 +0000 (01:14 +0200)]
Links: refactor & improve URL cleanup
Relates to #141
Relates to #133
Modifications
- move URL cleanup to `application/Url.php`
- rework the cleanup function
- fragments: `#stuff`
- GET parameters: `?var1=val1&var2=val2`
- add documentation (APIs the params belong to)
- add test coverage
Reference
- http://php.net/parse_url
- http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Thu, 13 Aug 2015 21:54:26 +0000 (23:54 +0200)]
Merge pull request #309 from virtualtam/refactor/PageCache
CachedPage: move to a proper file, add tests
VirtualTam [Thu, 13 Aug 2015 19:39:51 +0000 (21:39 +0200)]
Cache: simplify cached content cleanup, improve tests
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Thu, 9 Jul 2015 20:14:39 +0000 (22:14 +0200)]
CachedPage: move to a proper file, add tests
Modifications
- rename `pageCache` to `CachedPage`
- move utilities to `Cache`
- do not access globals
- apply coding rules
- update LinkDB and test code
- add test coverage
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Thu, 13 Aug 2015 21:47:05 +0000 (23:47 +0200)]
Merge pull request #301 from ArthurHoaro/edit-link-redirect
Fixes #299: prevent 404 on '?edit_link' while logged out
ArthurHoaro [Wed, 29 Jul 2015 13:32:41 +0000 (15:32 +0200)]
Fixes #299: prevent 404 on '?edit_link' while logged out
- add a use case for edit_link in logged out part.
- *really* prevent loops on login screen.
VirtualTam [Wed, 5 Aug 2015 14:34:40 +0000 (16:34 +0200)]
Merge pull request #313 from virtualtam/install/timezone
Installation: default to the server's timezone
VirtualTam [Tue, 4 Aug 2015 16:31:16 +0000 (18:31 +0200)]
Installation: default to the server's timezone
Modifications
- attempt to use the server's timezone
- if none is set, use UTC
- TimeZone: apply coding conventions
- variable naming
- no closing PHP tag
Relates to #274
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Tue, 4 Aug 2015 14:07:13 +0000 (16:07 +0200)]
Merge pull request #294 from virtualtam/doc/update
Doc: sync from Wiki, generate HTML
VirtualTam [Wed, 22 Jul 2015 03:02:10 +0000 (05:02 +0200)]
Doc: sync from Wiki, generate HTML
Closes #291
Fixes #227
Modifications
- HTML content: match the new Wiki structure
- Makefile
- generate a custom HTML sidebar
- include the sidebar on all pages
- infer and prepend page titles
- handle relative links
- add title metadata, e.g. Shaarli - <Page Name>
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Fri, 31 Jul 2015 14:08:32 +0000 (16:08 +0200)]
Merge pull request #276 from virtualtam/tools/phpcs
Add a generic rule to run PHPCS against different coding standards
VirtualTam [Thu, 30 Jul 2015 09:43:43 +0000 (11:43 +0200)]
Merge pull request #303 from virtualtam/v0.5.0
Bump version to 0.5.0
VirtualTam [Thu, 30 Jul 2015 09:20:51 +0000 (11:20 +0200)]
Bump version to 0.5.0
Major changes
- fix locale handling
- fix note URLs
- fix page redirections
- fix daily RSS browsing
- fix title display
- fix links not being hidden when `HIDE_PUBLIC_LINKS` is set
- restore compatibility with PHP 5.3
- remove duplicate tags in links
- remove annoying URL patterns
- add Firefox Social API
- Search/Filter by tag fieds can now be accessed quickly with the `Tab` key
- update documentation
- start code refactoring
- move all settings to `data/config.php`
- refactor Config, LinkDB, TimeZone, Utils
- add unit test coverage
- add Travis integration
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
ArthurHoaro [Fri, 24 Jul 2015 09:13:04 +0000 (11:13 +0200)]
Add Requirements section in README (link to wiki).
Fixes #297
Arthur [Thu, 23 Jul 2015 13:45:59 +0000 (15:45 +0200)]
Merge pull request #295 from Knah-Tsaeb/patch-1
[fix] #293 - Black thumbnails on picture wall after upgrade
VirtualTam [Wed, 22 Jul 2015 22:34:52 +0000 (00:34 +0200)]
Merge pull request #289 from virtualtam/make-clean
Makefile: do not call `clean` before `test`
Knah Tsaeb [Wed, 22 Jul 2015 08:39:23 +0000 (10:39 +0200)]
[fix] #293
Black thumbnails on picture wall after upgrade #293
VirtualTam [Sat, 18 Jul 2015 09:56:41 +0000 (11:56 +0200)]
Makefile: do not call `clean` before `test`
Fixes #288
Modifications:
- call `make clean` explicitely to clean the workspace
- add `make clean` to Travis instructions
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Sat, 18 Jul 2015 11:42:15 +0000 (13:42 +0200)]
Merge pull request #290 from virtualtam/travis-container
Travis: use the container-based infrastructure
VirtualTam [Sat, 18 Jul 2015 11:23:00 +0000 (13:23 +0200)]
Travis: use the container-based infrastructure
See http://docs.travis-ci.com/user/migrating-from-legacy/
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Arthur [Wed, 15 Jul 2015 09:05:07 +0000 (11:05 +0200)]
Merge pull request #271 from virtualtam/php53
PHP: ensure 5.3 compatibility
VirtualTam [Fri, 10 Jul 2015 23:29:12 +0000 (01:29 +0200)]
PHP: ensure 5.3 compatibility, refactor timezone utilities
Relates to #250
Modifications
- supported version
- bump required version from 5.1.0 to 5.3.x
- update README
- add PHP 5.3 to Travis environments
- rewrite array declarations: explicitely use array() instead of []
- move checkPHPVersion to application/Utils.php
- move timezone functions to application/TimeZone.php
- cleanup code
- improve test coverage
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Sun, 12 Jul 2015 21:04:43 +0000 (23:04 +0200)]
Makefile: add a generic rule to run PHPCS against different coding standards
Relates to #95
Usage
- list available standards
$ ./vendor/bin/phpcs -i
- run PHPCS against a given standard
$ make PHPCS_<standard>
Examples
$ make PHPCS_PSR1
$ make PHPCS_Zend
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Sun, 12 Jul 2015 17:56:13 +0000 (19:56 +0200)]
Merge pull request #257 from ArthurHoaro/tag-http-referer
Prevent redirection loop everytime we rely on HTTP_REFERER
ArthurHoaro [Mon, 6 Jul 2015 08:22:00 +0000 (10:22 +0200)]
Prevent redirection loop everytime we rely on HTTP_REFERER:
* search tag
* delete tag
* pagination
* display privates only
* delete link
* new/edit/cancel link return page
Move location generation to Utils.php + unit tests.
Fixes #256
ninja
Arthur [Sun, 12 Jul 2015 13:16:37 +0000 (15:16 +0200)]
English mistake cf sebsauvage/Shaarli#221
ArthurHoaro [Sun, 12 Jul 2015 09:36:42 +0000 (11:36 +0200)]
Fixes warning 'Undefined index: searchtags' while filtering by tags.
Happened if there were not any searchtags already present in the query.
Arthur [Sun, 12 Jul 2015 09:01:24 +0000 (11:01 +0200)]
Merge pull request #262 from ArthurHoaro/dup-tags
Avoid tag duplicates
ArthurHoaro [Wed, 8 Jul 2015 14:28:31 +0000 (16:28 +0200)]
Avoid tag duplicates
* Prevent duplicate client side with awesomplete
* Prevent duplicate server side (save_edit processing)
Fixes #261
VirtualTam [Sat, 11 Jul 2015 17:09:52 +0000 (19:09 +0200)]
Merge pull request #268 from ArthurHoaro/dailrss-template
Include the whole <item> in Daily RSS template
VirtualTam [Sat, 11 Jul 2015 10:48:24 +0000 (12:48 +0200)]
Merge pull request #269 from virtualtam/fix/read-config
Fix: data/config.php was not imported
ArthurHoaro [Fri, 10 Jul 2015 13:41:59 +0000 (15:41 +0200)]
Include the whole <item> in dailyRSS
Allow custom date format and title in templates.
Also a bit of code style review.
Fixes #182
VirtualTam [Fri, 10 Jul 2015 20:53:43 +0000 (22:53 +0200)]
Fix: data/config.php was not imported
Relates to #255
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Fri, 10 Jul 2015 15:43:00 +0000 (17:43 +0200)]
Merge pull request #267 from virtualtam/linkdb/private-names
LinkDB: prefix private members with an underscore
VirtualTam [Thu, 9 Jul 2015 19:07:37 +0000 (21:07 +0200)]
LinkDB: prefix private members with an underscore
Relates to #95, #218
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Thu, 9 Jul 2015 19:34:46 +0000 (21:34 +0200)]
Merge pull request #255 from ArthurHoaro/config
All settings are now stored in config.php
ArthurHoaro [Mon, 29 Jun 2015 10:23:00 +0000 (12:23 +0200)]
All settings are now stored in config.php
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).
VirtualTam [Wed, 8 Jul 2015 23:00:40 +0000 (01:00 +0200)]
Merge pull request #251 from virtualtam/linkdb/date-format
LinkDB::filterDay(): check input date format
VirtualTam [Sat, 27 Jun 2015 12:57:44 +0000 (14:57 +0200)]
LinkDB::filterDay(): check input date format
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
VirtualTam [Wed, 8 Jul 2015 22:16:07 +0000 (00:16 +0200)]
Merge pull request #264 from ArthurHoaro/daily-nav
Fixes #260: previous/next day links in daily
ArthurHoaro [Wed, 8 Jul 2015 15:11:06 +0000 (17:11 +0200)]
Fixes #260: previous/next day links in daily
The bug was occuring only if we tried to access to the first day.
nodiscc [Sun, 28 Jun 2015 13:53:27 +0000 (15:53 +0200)]
Merge pull request #254 from virtualtam/test/linkdb/datastore
LinkDBTest: only check that the datastore is created and non-empty
VirtualTam [Sun, 28 Jun 2015 12:53:26 +0000 (14:53 +0200)]
LinkDBTest: only check that the datastore is created and non-empty
Fixes #252
Relates to #238
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
nodiscc [Sat, 27 Jun 2015 14:30:54 +0000 (16:30 +0200)]
doc: bump php requirement to php 5.4, fixes https://github.com/shaarli/Shaarli/issues/250
nodiscc [Fri, 26 Jun 2015 20:03:25 +0000 (22:03 +0200)]
Merge remote-tracking branch 'ArthurHoaro/default-links'
nodiscc [Fri, 26 Jun 2015 20:03:10 +0000 (22:03 +0200)]
Merge remote-tracking branch 'virtualtam/linkdb/remove-globals'
nodiscc [Fri, 26 Jun 2015 19:56:43 +0000 (21:56 +0200)]
[doc] sync doc with latest wiki, build HTML
nodiscc [Fri, 26 Jun 2015 19:54:54 +0000 (21:54 +0200)]
[doc] update CONTRIBUTING
nicolasm [Wed, 24 Jun 2015 03:35:36 +0000 (00:35 -0300)]
duplicated id removed
nicolasm [Wed, 24 Jun 2015 03:35:13 +0000 (00:35 -0300)]
awesome.css restored. width bug fixed.
nodiscc [Fri, 26 Jun 2015 19:49:18 +0000 (21:49 +0200)]
Merge pull request #249 from fbartels/patch-1
Restore compatibility with php 5.3
Felix Bartels [Fri, 26 Jun 2015 14:57:07 +0000 (16:57 +0200)]
Restore compatability with php 5.3
VirtualTam [Wed, 24 Jun 2015 21:01:21 +0000 (23:01 +0200)]
LinkDB: do not access global variables
Relates to #218
Removes "hidden" access to the following variables:
- $GLOBALS['config']['datastore']
- PHPPREFIX
- PHPSUFFIX
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
ArthurHoaro [Wed, 24 Jun 2015 09:47:36 +0000 (11:47 +0200)]
Fixes unit tests: checking datastore filesize instead of hash.
date() makes the hash validation worthless because it changes at every generation.
ArthurHoaro [Tue, 23 Jun 2015 18:54:43 +0000 (20:54 +0200)]
Change fresh install default link
Fixes #200
Let me know if you want to change anything in the description.
nodiscc [Tue, 23 Jun 2015 23:04:50 +0000 (01:04 +0200)]
move escape() and sanitizeLink() to application/Utils.php
prevents 'PHP Fatal error: Call to undefined function sanitizeLink() in Shaarli/application/LinkDB.php on line 255' in tests
nodiscc [Tue, 23 Jun 2015 22:51:38 +0000 (00:51 +0200)]
Merge remote-tracking branch 'ArthurHoaro/input-escape' into next
Conflicts:
index.php
VirtualTam [Tue, 23 Jun 2015 20:34:07 +0000 (22:34 +0200)]
LinkDB: add 'hidePublicLinks' parameter to the constructor
Fixes #236
Relates to #237
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
nodiscc [Tue, 23 Jun 2015 22:15:56 +0000 (00:15 +0200)]
add travis-ci.org build status to README
nodiscc [Tue, 23 Jun 2015 18:51:16 +0000 (20:51 +0200)]
Add link to 'Running unit tests wiki page'
Fixes https://github.com/shaarli/Shaarli/issues/234
nodiscc [Tue, 23 Jun 2015 18:45:15 +0000 (20:45 +0200)]
Merge remote-tracking branch 'nicolasdanelon/master' into next
Nicolas Danelon [Tue, 23 Jun 2015 18:32:23 +0000 (15:32 -0300)]
cursor pointer for label (ux improvement)
Nicolas Danelon [Tue, 23 Jun 2015 18:30:13 +0000 (15:30 -0300)]
fix no javascript
ArthurHoaro [Tue, 23 Jun 2015 18:22:02 +0000 (20:22 +0200)]
Page title if there is a single link
Fixes #232
ArthurHoaro [Thu, 11 Jun 2015 11:53:27 +0000 (13:53 +0200)]
Working on shaarli/Shaarli#224
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.
Nicolas Danelon [Tue, 23 Jun 2015 14:22:11 +0000 (11:22 -0300)]
Update awesomplete.css
Nicolas Danelon [Tue, 23 Jun 2015 14:03:11 +0000 (11:03 -0300)]
filter input search responsive fixed (mobile)
nodiscc [Tue, 23 Jun 2015 13:32:45 +0000 (15:32 +0200)]
add tabindex 1/2 to search and tags fields
nodiscc [Tue, 23 Jun 2015 13:11:17 +0000 (15:11 +0200)]
Merge remote-tracking branch 'origin/doc-contributing'
nodiscc [Tue, 23 Jun 2015 13:07:03 +0000 (15:07 +0200)]
Merge remote-tracking branch 'ArthurHoaro/daily-date' into next
nodiscc [Tue, 23 Jun 2015 13:03:01 +0000 (15:03 +0200)]
Merge remote-tracking branch 'nicolasdanelon/master' into next
nodiscc [Tue, 23 Jun 2015 12:57:54 +0000 (14:57 +0200)]
re-add readDb() missing from previous merge
nodiscc [Tue, 23 Jun 2015 12:38:43 +0000 (14:38 +0200)]
Merge remote-tracking branch 'virtualtam/test/link-db' into next
Conflicts:
index.php
nodiscc [Tue, 23 Jun 2015 12:18:31 +0000 (14:18 +0200)]
Merge remote-tracking branch 'ArthurHoaro/search-tag-awesomplete' into next
nodiscc [Tue, 23 Jun 2015 12:18:04 +0000 (14:18 +0200)]
Merge remote-tracking branch 'virtualtam/travis' into next
nda [Fri, 19 Jun 2015 20:42:16 +0000 (17:42 -0300)]
fix login desktop
nda [Fri, 19 Jun 2015 20:37:38 +0000 (17:37 -0300)]
login enhance for mobile
ArthurHoaro [Fri, 19 Jun 2015 18:13:31 +0000 (20:13 +0200)]
Daily page: date format in template
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.
VirtualTam [Wed, 11 Mar 2015 23:43:02 +0000 (00:43 +0100)]
LinkDB: move to a proper file, add test coverage
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>
nodiscc [Tue, 9 Jun 2015 22:26:00 +0000 (00:26 +0200)]
Create CONTIBUTING.md
Contributing guidelines, fixes https://github.com/shaarli/Shaarli/issues/154
ArthurHoaro [Tue, 9 Jun 2015 12:58:54 +0000 (14:58 +0200)]
Do not load links if they're hidden (also fix shaarli/Shaarli#202)
ArthurHoaro [Tue, 9 Jun 2015 12:23:28 +0000 (14:23 +0200)]
Add awesomplete to tag search shaarli/Shaarli#49
VirtualTam [Thu, 4 Jun 2015 22:46:05 +0000 (00:46 +0200)]
Add Travis CI config
Relates to #71
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
nodiscc [Wed, 3 Jun 2015 13:54:30 +0000 (15:54 +0200)]
split annoyingpatterns list on multpile lines, add new patterns for removal:
* utm_content=
* fb=
* xtor=
closes https://github.com/shaarli/Shaarli/issues/136
nodiscc [Fri, 22 May 2015 19:07:00 +0000 (21:07 +0200)]
Merge branch 'really-hide' of https://github.com/pikzen/Shaarli into next
nodiscc [Fri, 22 May 2015 19:04:36 +0000 (21:04 +0200)]
Merge remote-tracking branch 'Marsup/firefox-social' into next
Marsup [Mon, 11 May 2015 16:42:54 +0000 (16:42 +0000)]
Add Firefox Social API to the tools. Fixes #101.
feula [Mon, 11 May 2015 17:55:59 +0000 (19:55 +0200)]
Properly hide all links
>searchtags
Jonathan Druart [Fri, 8 May 2015 10:38:01 +0000 (11:38 +0100)]
Display date as today if no articles published
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?)
nodiscc [Mon, 20 Apr 2015 12:36:25 +0000 (14:36 +0200)]
doc: add demo to README
fixes https://github.com/shaarli/Shaarli/issues/198
nodiscc [Fri, 10 Apr 2015 18:52:12 +0000 (20:52 +0200)]
change wording and variable names for "Hide public links" feature
nodiscc [Fri, 10 Apr 2015 18:30:33 +0000 (20:30 +0200)]
Merge remote-tracking branch 'pikzen/disable-public' into next
nodiscc [Fri, 10 Apr 2015 18:30:15 +0000 (20:30 +0200)]
Merge remote-tracking branch 'ArthurHoaro/localecharset' into next
nodiscc [Fri, 10 Apr 2015 18:28:51 +0000 (20:28 +0200)]
Merge branch 'pandoc' into next
nodiscc [Fri, 10 Apr 2015 18:28:24 +0000 (20:28 +0200)]
Merge commit '
326ae54 ' into next