]> git.immae.eu Git - github/shaarli/Shaarli.git/log
github/shaarli/Shaarli.git
8 years agoWallabag plugin improvement 417/head
ArthurHoaro [Tue, 22 Dec 2015 09:20:27 +0000 (10:20 +0100)] 
Wallabag plugin improvement

  * Fixes a bug where URL weren't properly encoded.
  * Adds Wallabag V2 support.
  * Adds a URL function to handle trailing slash.
  * UT.
  * README updated.

8 years agoMerge pull request #406 from ArthurHoaro/qrcode-style
VirtualTam [Wed, 9 Dec 2015 00:00:52 +0000 (01:00 +0100)] 
Merge pull request #406 from ArthurHoaro/qrcode-style

Fixes #403 : Remove QRCode in core CSS and fix plugin layout

8 years agoMerge pull request #408 from ArthurHoaro/gototop
VirtualTam [Tue, 8 Dec 2015 23:55:52 +0000 (00:55 +0100)] 
Merge pull request #408 from ArthurHoaro/gototop

Adding a new placeholder in render_footer hook.

8 years agoMerge pull request #407 from ArthurHoaro/daily-router
VirtualTam [Tue, 8 Dec 2015 20:41:31 +0000 (21:41 +0100)] 
Merge pull request #407 from ArthurHoaro/daily-router

Fixes #402: build the daily page through renderPage()

8 years agoAdding a new placeholder in render_footer hook. 408/head
ArthurHoaro [Mon, 7 Dec 2015 10:54:18 +0000 (11:54 +0100)] 
Adding a new placeholder in render_footer hook.

Allow free elements at the end of the page.

8 years agoFixes #403: build the daily page through renderPage() 407/head
ArthurHoaro [Mon, 7 Dec 2015 10:25:11 +0000 (11:25 +0100)] 
Fixes #403: build the daily page through renderPage()

  * new entry in the Router for daily page.
  * add an always displayed button in demo_plugin

8 years agoReset permissions on index.php (changed in 18cca483b0b51f190bd875fc4273a0fff3fedebd ).
ArthurHoaro [Tue, 8 Dec 2015 14:09:17 +0000 (15:09 +0100)] 
Reset permissions on index.php (changed in 18cca483b0b51f190bd875fc4273a0fff3fedebd ).

8 years agoMerge pull request #393 from ArthurHoaro/tools-js-indent
VirtualTam [Mon, 7 Dec 2015 20:48:57 +0000 (21:48 +0100)] 
Merge pull request #393 from ArthurHoaro/tools-js-indent

Minimal indent of tools.html

8 years agoFixes #403 : Remove QRCode in core CSS and fix plugin layout 406/head
ArthurHoaro [Mon, 7 Dec 2015 09:50:28 +0000 (10:50 +0100)] 
Fixes #403 : Remove QRCode in core CSS and fix plugin layout

8 years agoMinimal indent of tools.html 393/head
ArthurHoaro [Thu, 26 Nov 2015 20:09:09 +0000 (21:09 +0100)] 
Minimal indent of tools.html

8 years agoMerge pull request #405 from ArthurHoaro/titles-fix
Arthur [Mon, 7 Dec 2015 09:54:45 +0000 (10:54 +0100)] 
Merge pull request #405 from ArthurHoaro/titles-fix

Temporary fix for head titles

8 years agoTemporary fix for head titles 405/head
ArthurHoaro [Mon, 7 Dec 2015 09:29:24 +0000 (10:29 +0100)] 
Temporary fix for head titles

only set the title on permalink.

8 years agoMerge pull request #400 from ArthurHoaro/title-399
VirtualTam [Sun, 6 Dec 2015 16:40:29 +0000 (17:40 +0100)] 
Merge pull request #400 from ArthurHoaro/title-399

Fixes #399 - show single link title as page title

8 years agoFixes #399 - show single link title as page title 400/head
ArthurHoaro [Sat, 5 Dec 2015 10:05:08 +0000 (11:05 +0100)] 
Fixes #399 - show single link title as page title

8 years agoMerge pull request #398 from virtualtam/fix/initialize-version-vars
VirtualTam [Thu, 3 Dec 2015 20:13:51 +0000 (21:13 +0100)] 
Merge pull request #398 from virtualtam/fix/initialize-version-vars

fix: assign template variables to empty values so they can be evaluated

8 years agofix: assign template variables to empty values so they can be evaluated 398/head
VirtualTam [Thu, 3 Dec 2015 19:30:46 +0000 (20:30 +0100)] 
fix: assign template variables to empty values so they can be evaluated

Regression introduced in #394

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoRemove dummycache folder on tear down.
ArthurHoaro [Thu, 3 Dec 2015 18:27:34 +0000 (19:27 +0100)] 
Remove dummycache folder on tear down.

8 years agoBump version to v0.6.1 v0.6.1
VirtualTam [Tue, 1 Dec 2015 20:25:50 +0000 (21:25 +0100)] 
Bump version to v0.6.1

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years ago[doc] add apache2 CSP config
nodiscc [Mon, 30 Nov 2015 22:17:01 +0000 (23:17 +0100)] 
[doc] add apache2 CSP config

8 years agoremove obsolete doc
nodiscc [Mon, 30 Nov 2015 21:43:28 +0000 (22:43 +0100)] 
remove obsolete doc

8 years agoMerge pull request #394 from virtualtam/app-utils/check-update/stable-branch
VirtualTam [Mon, 30 Nov 2015 01:03:32 +0000 (02:03 +0100)] 
Merge pull request #394 from virtualtam/app-utils/check-update/stable-branch

application: default to the "stable" branch for update checks

8 years agoapplication: default to the "stable" branch for update checks 394/head
VirtualTam [Thu, 26 Nov 2015 23:10:43 +0000 (00:10 +0100)] 
application: default to the "stable" branch for update checks

Relates to #372
Relates to #390

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #390 from virtualtam/app-utils/check-update
VirtualTam [Thu, 26 Nov 2015 22:29:20 +0000 (23:29 +0100)] 
Merge pull request #390 from virtualtam/app-utils/check-update

application: refactor version checks, move to ApplicationUtils

8 years agoapplication: refactor version checks, move to ApplicationUtils 390/head
VirtualTam [Tue, 24 Nov 2015 01:52:22 +0000 (02:52 +0100)] 
application: refactor version checks, move to ApplicationUtils

Relates to #372

Modifications:
 - move checkUpdate() to ApplicationUtils
 - reduce file I/O operations during version checks
 - apply coding conventions
 - add test coverage

Tools:
 - create a sandbox directory for tests

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #355 from ArthurHoaro/redirector-url
VirtualTam [Thu, 26 Nov 2015 22:05:58 +0000 (23:05 +0100)] 
Merge pull request #355 from ArthurHoaro/redirector-url

URL encode links when a redirector is set

8 years agoFixes incorrect call to
ArthurHoaro [Thu, 26 Nov 2015 19:51:53 +0000 (20:51 +0100)] 
Fixes incorrect call to

From 2e28269baed195d58bbe169841eed176b171db76

8 years agoURL encode links when a redirector is set. 355/head
ArthurHoaro [Fri, 18 Sep 2015 11:26:36 +0000 (13:26 +0200)] 
URL encode links when a redirector is set.

Fixes #328 - URL encode links when a redirector is set

  * WARNING - template edit - new variable available : "real_url"
  Contains the final real url (redirected or any other change on original URL)

  * Don't redirect shaares link in RSS/Atom.
  * Affects links shaared in description.
  * Move text2clickable and keepMultipleSpaces to Utils.php + unit test

UPDATE:

* keepMultipleSpaces renamed to space2nbsp
* space2nbsp improved to handle single space at line beginning
* links in text description aren't 'nofollow' anymore

9 years agoMerge pull request #391 from nicolasdanelon/patch-1
Arthur [Wed, 25 Nov 2015 14:07:20 +0000 (15:07 +0100)] 
Merge pull request #391 from nicolasdanelon/patch-1

json_encode removed

9 years agocleanup: remove json_encode() (built-in since PHP 5.2) 391/head
Nicolas Danelon [Tue, 24 Nov 2015 15:29:26 +0000 (12:29 -0300)] 
cleanup: remove json_encode() (built-in since PHP 5.2)
See http://php.net/manual/en/function.json-encode.php

Legacy since php 5.2.x . If php5.3 is required for the install script

9 years agoMerge pull request #389 from virtualtam/utils/check-php-version
VirtualTam [Tue, 24 Nov 2015 00:42:52 +0000 (01:42 +0100)] 
Merge pull request #389 from virtualtam/utils/check-php-version

application: move checkPHPVersion from Utils to ApplicationUtils

9 years agoapplication: move checkPHPVersion from Utils to ApplicationUtils 389/head
VirtualTam [Tue, 24 Nov 2015 00:36:12 +0000 (01:36 +0100)] 
application: move checkPHPVersion from Utils to ApplicationUtils

Relates to #372

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #375 from virtualtam/utils/permissions
VirtualTam [Tue, 24 Nov 2015 00:26:30 +0000 (01:26 +0100)] 
Merge pull request #375 from virtualtam/utils/permissions

tools: check file/directory permissions for Shaarli resources

9 years agoinstall: check file/directory permissions for Shaarli resources 375/head
VirtualTam [Wed, 11 Nov 2015 21:49:58 +0000 (22:49 +0100)] 
install: check file/directory permissions for Shaarli resources

Relates to #40
Relates to #372

Additions:
 - FileUtils: IOException
 - ApplicationUtils:
   - check if Shaarli resources are accessible with sufficient permissions
   - basic test coverage
 - index.php:
   - check access permissions and redirect to an error page if needed:
     - before running the first installation

Modifications:
 - LinkDB:
   - factorize datastore write code
   - check if the datastore
     (exists AND is writeable) OR (doesn't exist AND its parent dir is writable)
   - raise an IOException if needed

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #384 from roidelapluie/master
VirtualTam [Mon, 23 Nov 2015 19:24:35 +0000 (20:24 +0100)] 
Merge pull request #384 from roidelapluie/master

fill session info when shaarli is in open mode

9 years agoFix authentification when Shaarli is in Open Mode. 384/head
Julien Pivotto [Sun, 22 Nov 2015 16:39:50 +0000 (17:39 +0100)] 
Fix authentification when Shaarli is in Open Mode.

9 years agoMerge pull request #377 from ArthurHoaro/search-tag-autocomplete
VirtualTam [Sun, 22 Nov 2015 22:22:17 +0000 (23:22 +0100)] 
Merge pull request #377 from ArthurHoaro/search-tag-autocomplete

Fixes #360 - Auto-complete more than one tag in tag filter field

9 years agoMerge pull request #277 from virtualtam/doxygen
VirtualTam [Sun, 22 Nov 2015 20:01:02 +0000 (21:01 +0100)] 
Merge pull request #277 from virtualtam/doxygen

Add a target to generate Doxygen documentation

9 years agoAdd a target to generate Doxygen documentation 277/head
VirtualTam [Mon, 13 Jul 2015 15:53:36 +0000 (17:53 +0200)] 
Add a target to generate Doxygen documentation

Relates to #95

Customizations for PHP/Shaarli:
 - add project information
 - index PHP files
 - index global functions
 - exclude directories

Usage
 $ make doxygen
 $ firefox doxygen/index.html &

Notes
 - classes can be found under "Data Structures"
 - global functions can be found under "Files > Globals > Functions"

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoAdd default Doxygen configuration
VirtualTam [Mon, 13 Jul 2015 15:50:31 +0000 (17:50 +0200)] 
Add default Doxygen configuration

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #387 from ArthurHoaro/bookmarklet-quote
VirtualTam [Sun, 22 Nov 2015 17:10:50 +0000 (18:10 +0100)] 
Merge pull request #387 from ArthurHoaro/bookmarklet-quote

Fixes #382: Bookmarklet can not retrieve title when there is a quotation mark in it

9 years agoMerge pull request #376 from ArthurHoaro/opensearch
VirtualTam [Sun, 22 Nov 2015 16:53:24 +0000 (17:53 +0100)] 
Merge pull request #376 from ArthurHoaro/opensearch

Fixes #176 - Add opensearch functionality

9 years agoMerge pull request #385 from ArthurHoaro/plugins-error-fix
Arthur [Sun, 22 Nov 2015 16:32:17 +0000 (17:32 +0100)] 
Merge pull request #385 from ArthurHoaro/plugins-error-fix

Bugfix: do not store plugin errors in data.php

9 years agoFixes #382: Bookmarklet can not retrieve title when there is a quotation mark in it 387/head
ArthurHoaro [Sun, 22 Nov 2015 14:47:41 +0000 (15:47 +0100)] 
Fixes #382: Bookmarklet can not retrieve title when there is a quotation mark in it

    bookmarklet fields weren't correctly escaped

9 years agoBugfix: do not store plugin errors in data.php 385/head
ArthurHoaro [Sun, 22 Nov 2015 13:45:09 +0000 (14:45 +0100)] 
Bugfix: do not store plugin errors in data.php

Before this, calling writeConfig() would have write error messages in data.php, because it uses 'plugins' array which is used for plugin configuration.

Causing the message error appear everytime.

9 years agoMerge pull request #383 from ArthurHoaro/master
Arthur [Wed, 18 Nov 2015 12:39:46 +0000 (13:39 +0100)] 
Merge pull request #383 from ArthurHoaro/master

Bump version to v0.6.0

9 years agoBump version to v0.6.0 383/head v0.6.0
ArthurHoaro [Wed, 18 Nov 2015 12:38:30 +0000 (13:38 +0100)] 
Bump version to v0.6.0

Signed-off-by: ArthurHoaro <arthur@hoa.ro>
9 years agoFixes #176 - Add opensearch functionality 376/head
ArthurHoaro [Fri, 13 Nov 2015 18:32:35 +0000 (19:32 +0100)] 
Fixes #176 - Add opensearch functionality

 * add a new page in Router: do=opensearch which displays the opensearch plugin
 * using base64 compressed image to avoid issue encountered with HTTPS

9 years agoFixes #360 - Auto-complete more than one tag in tag filter field 377/head
ArthurHoaro [Fri, 13 Nov 2015 19:24:12 +0000 (20:24 +0100)] 
Fixes #360 - Auto-complete more than one tag in tag filter field

  * Group awesomplete for multi data in a single JS file.
  * Use it in editlink and linklist.
  * Move awesomplete JS lib at the end of page in editlink.

9 years agoMerge pull request #374 from virtualtam/cleanup
VirtualTam [Wed, 11 Nov 2015 18:22:04 +0000 (19:22 +0100)] 
Merge pull request #374 from virtualtam/cleanup

cleanup: remove the executable bit from source scripts

9 years agocleanup: remove the executable bit from source scripts 374/head
VirtualTam [Wed, 11 Nov 2015 18:06:12 +0000 (19:06 +0100)] 
cleanup: remove the executable bit from source scripts

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #373 from virtualtam/index/format-globals-comments
VirtualTam [Wed, 11 Nov 2015 17:58:32 +0000 (18:58 +0100)] 
Merge pull request #373 from virtualtam/index/format-globals-comments

index.php: group globals by theme, format comments

9 years agoindex.php: group globals by theme, format comments 373/head
VirtualTam [Wed, 11 Nov 2015 17:45:46 +0000 (18:45 +0100)] 
index.php: group globals by theme, format comments

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #275 from shaarli/plugin-proposition
Arthur [Sun, 8 Nov 2015 12:29:32 +0000 (13:29 +0100)] 
Merge pull request #275 from shaarli/plugin-proposition

Plugin proposition

9 years agoHandle errors raised by plugins in template. fixes #370 275/head
ArthurHoaro [Sun, 8 Nov 2015 12:22:44 +0000 (13:22 +0100)] 
Handle errors raised by plugins in template. fixes #370

9 years agoMerge pull request #286 from ArthurHoaro/plugin-demo_plugin
Arthur [Sun, 8 Nov 2015 11:54:02 +0000 (12:54 +0100)] 
Merge pull request #286 from ArthurHoaro/plugin-demo_plugin

PLUGIN demo_plugin

9 years agoPLUGIN demo_plugin 286/head
ArthurHoaro [Thu, 15 Oct 2015 10:50:40 +0000 (12:50 +0200)] 
PLUGIN demo_plugin

This plugin try to cover Shaarli's plugin API entirely.
Can be used by plugin developper to make their own.

9 years agoMerge pull request #281 from ArthurHoaro/plugin-wallabag
Arthur [Sun, 8 Nov 2015 11:46:17 +0000 (12:46 +0100)] 
Merge pull request #281 from ArthurHoaro/plugin-wallabag

PLUGIN wallabag

9 years agoMerge pull request #280 from ArthurHoaro/plugin-readityourself
Arthur [Sun, 8 Nov 2015 11:45:19 +0000 (12:45 +0100)] 
Merge pull request #280 from ArthurHoaro/plugin-readityourself

PLUGIN readityourself

9 years agoMerge pull request #279 from ArthurHoaro/plugin-addlink_toolbar
Arthur [Sun, 8 Nov 2015 11:45:07 +0000 (12:45 +0100)] 
Merge pull request #279 from ArthurHoaro/plugin-addlink_toolbar

PLUGIN: addlink_toolbar

9 years agounit tests for the wallabag plugin 281/head
ArthurHoaro [Sun, 8 Nov 2015 11:00:06 +0000 (12:00 +0100)] 
unit tests for the wallabag plugin
+ removed exit error if the config is not found
+ coding style

9 years agounit tests for readityourself plugin + remove hard error 280/head
ArthurHoaro [Sun, 8 Nov 2015 11:16:55 +0000 (12:16 +0100)] 
unit tests for readityourself plugin + remove hard error

9 years agounit test for addlink_toolbar + coding style 279/head
ArthurHoaro [Sun, 8 Nov 2015 11:40:14 +0000 (12:40 +0100)] 
unit test for addlink_toolbar + coding style

9 years agoPLUGIN: addlink_toolbar
ArthurHoaro [Thu, 15 Oct 2015 10:25:38 +0000 (12:25 +0200)] 
PLUGIN: addlink_toolbar

Add a field in linklist page to paste a new link.

Displayed in fields toolbar.

9 years agoPLUGIN readityourself
ArthurHoaro [Wed, 15 Jul 2015 10:04:22 +0000 (12:04 +0200)] 
PLUGIN readityourself

Add an icon for each link (linklist) for ReadItYourself

9 years agoMerge pull request #284 from ArthurHoaro/plugin-playvideos
Arthur [Sat, 7 Nov 2015 15:53:07 +0000 (16:53 +0100)] 
Merge pull request #284 from ArthurHoaro/plugin-playvideos

PLUGIN playvideos

9 years agoMerge pull request #285 from ArthurHoaro/plugin-qrcode
Arthur [Sat, 7 Nov 2015 15:52:53 +0000 (16:52 +0100)] 
Merge pull request #285 from ArthurHoaro/plugin-qrcode

PLUGIN QRCode

9 years agoMerge pull request #283 from ArthurHoaro/plugin-archiveorg
Arthur [Sat, 7 Nov 2015 15:52:41 +0000 (16:52 +0100)] 
Merge pull request #283 from ArthurHoaro/plugin-archiveorg

PLUGIN archiveorg

9 years agoMerge pull request #368 from ArthurHoaro/returnurl-again
Arthur [Sat, 7 Nov 2015 15:51:50 +0000 (16:51 +0100)] 
Merge pull request #368 from ArthurHoaro/returnurl-again

Fixes #356 -  adding a link should return added link's hash

9 years agoPLUGIN wallabag
ArthurHoaro [Wed, 15 Jul 2015 10:05:36 +0000 (12:05 +0200)] 
PLUGIN wallabag

Add a Wallabag icon in linklist for each link.

9 years agoAdd unit test for archiveorg plugin 283/head
ArthurHoaro [Sat, 7 Nov 2015 15:37:23 +0000 (16:37 +0100)] 
Add unit test for archiveorg plugin
+ coding style

9 years agoPLUGIN archiveorg
ArthurHoaro [Thu, 15 Oct 2015 10:47:04 +0000 (12:47 +0200)] 
PLUGIN archiveorg

Display an archive.org icon in linklist, foreach links.

9 years agoAdd unit tests for Playvideos plugin 284/head
ArthurHoaro [Sat, 7 Nov 2015 15:30:56 +0000 (16:30 +0100)] 
Add unit tests for Playvideos plugin
+ coding style

9 years agoPLUGIN playvideos
ArthurHoaro [Wed, 15 Jul 2015 10:01:06 +0000 (12:01 +0200)] 
PLUGIN playvideos

Display a button in buttons toolbar which allows to play all videos found.

9 years agoAdd unit tests for the QRCode plugin 285/head
ArthurHoaro [Sat, 7 Nov 2015 15:13:08 +0000 (16:13 +0100)] 
Add unit tests for the QRCode plugin
+ coding style

9 years agoPLUGIN QRCode
ArthurHoaro [Wed, 15 Jul 2015 10:02:56 +0000 (12:02 +0200)] 
PLUGIN QRCode

Add an icon in linklist to display links QRCode

9 years agoAdd plugins folder to test analysis
ArthurHoaro [Sat, 25 Jul 2015 08:39:13 +0000 (10:39 +0200)] 
Add plugins folder to test analysis

9 years agoUnit tests for Router and PluginManager.
ArthurHoaro [Thu, 16 Jul 2015 11:53:39 +0000 (13:53 +0200)] 
Unit tests for Router and PluginManager.

9 years agoTemplate upgrade to handle plugin zones
ArthurHoaro [Wed, 15 Jul 2015 09:47:12 +0000 (11:47 +0200)] 
Template upgrade to handle plugin zones

Add a bunch of plugin placeholders in templates

9 years agoPlugins TODO.md
ArthurHoaro [Wed, 15 Jul 2015 10:08:52 +0000 (12:08 +0200)] 
Plugins TODO.md

9 years agoPlugin system - CORE
ArthurHoaro [Wed, 15 Jul 2015 09:42:15 +0000 (11:42 +0200)] 
Plugin system - CORE

see shaarli/Shaarli#275

9 years agoFixes #356 368/head
ArthurHoaro [Wed, 4 Nov 2015 18:53:59 +0000 (19:53 +0100)] 
Fixes #356
 * adding a link should return added link's hash
* allow redirection relative urls in generateLocation

9 years agoBump version to 0.5.4 v0.5.4
VirtualTam [Mon, 14 Sep 2015 19:02:52 +0000 (21:02 +0200)] 
Bump version to 0.5.4

Fixes:
 - PHP session IDs: handle hash algorithms and bits per char representations

Minor changes:
 - HTTPS: support being served behing an SSL-enabled proxy
 - HTTP/Server utilities: refactor & add test coverage

Project & documentation:
 - improve/rewrite `README.md`
 - update contributor list
 - update `index.php` header

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoUpdate project information: contributors, `index.php` header
VirtualTam [Mon, 14 Sep 2015 18:54:13 +0000 (20:54 +0200)] 
Update project information: contributors, `index.php` header

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #346 from virtualtam/refactor/http-url-utils
VirtualTam [Mon, 14 Sep 2015 18:40:41 +0000 (20:40 +0200)] 
Merge pull request #346 from virtualtam/refactor/http-url-utils

HTTP: move server URL functions to `HttpUtils.php`

9 years agoHTTP: move server URL functions to `HttpUtils.php` 346/head
VirtualTam [Sun, 6 Sep 2015 19:31:37 +0000 (21:31 +0200)] 
HTTP: move server URL functions to `HttpUtils.php`

Relates to #333

Modifications:
 - refactor server URL utility functions
 - do not access global `$_SERVER` variables
 - add test coverage
 - improve readability
 - apply coding conventions

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoSSL detection: add support for `X-Forwarded-Proto`
Fanch [Tue, 1 Sep 2015 11:37:04 +0000 (13:37 +0200)] 
SSL detection: add support for `X-Forwarded-Proto`

Duplicates #332

See:
 - RFC 7239 - Forwarded HTTP Extension
   http://www.ietf.org/rfc/rfc7239.txt
 - RFC 6238 - Deprecating the "X-" Prefix and Similar Constructs in Application Protocols
   http://www.ietf.org/rfc/rfc6648.txt
 - StackOverflow - Custom HTTP headers: naming conventions
   http://stackoverflow.com/a/3561399

9 years agoMerge pull request #337 from doc75/doublon_url
VirtualTam [Tue, 8 Sep 2015 20:03:18 +0000 (22:03 +0200)] 
Merge pull request #337 from doc75/doublon_url

#325 small enhancement to fix the GetLinkFromUrl method

9 years agoUrl: introduce global helper functions for cleanup and scheme detection 337/head
Guillaume Virlet [Wed, 2 Sep 2015 11:55:39 +0000 (13:55 +0200)] 
Url: introduce global helper functions for cleanup and scheme detection

Relates to #314 & #326

Additions:
 - add global `cleanup_url()` and `get_url_scheme()` functions

Modifications:
 - replace `Url` usage in `index.php` by calls to global functions
 - fix `Url` tests not being run: PHPUnit expects a single test class per file
   - move classes to separate files

9 years agoMerge pull request #334 from virtualtam/refactor/http-utils
VirtualTam [Sun, 6 Sep 2015 18:32:01 +0000 (20:32 +0200)] 
Merge pull request #334 from virtualtam/refactor/http-utils

HTTP: move utils to a proper file, add tests

9 years agoHTTP: move utils to a proper file, add tests 334/head
VirtualTam [Tue, 1 Sep 2015 19:45:06 +0000 (21:45 +0200)] 
HTTP: move utils to a proper file, add tests

Relates to #333

Modifications:
 - move HTTP utils to 'application/HttpUtils.php'
 - simplify logic
   - replace 'http_parse_headers_shaarli' by built-in 'get_headers()'
   - remove superfluous '$status' parameter (provided by the HTTP headers)
 - apply coding conventions
 - add test coverage (unitary only)

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #338 from virtualtam/fix/unique-uniqid
VirtualTam [Sun, 6 Sep 2015 14:16:53 +0000 (16:16 +0200)] 
Merge pull request #338 from virtualtam/fix/unique-uniqid

Session ID: extend the regex to match possible hash representations

9 years agoSession ID: extend the regex to match possible hash representations 338/head
VirtualTam [Thu, 3 Sep 2015 21:12:58 +0000 (23:12 +0200)] 
Session ID: extend the regex to match possible hash representations

Improves #306
Relates to #335 & #336
Duplicated by #339

Issues:
 - PHP regenerates the session ID if it is not compliant
 - the regex checking the session ID does not cover all cases
   - different algorithms: md5, sha1, sha256, etc.
   - bit representations: 4, 5, 6

Fix:
 - `index.php`:
   - remove `uniqid()` usage
   - call `session_regenerate_id()` if an invalid cookie is detected
 - regex: support all possible characters - '[a-zA-Z,-]{2,128}'
 - tests: add coverage for all algorithms & bit representations

See:
 - http://php.net/manual/en/session.configuration.php#ini.session.hash-function
 - https://secure.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
 - http://php.net/manual/en/function.session-id.php
 - http://php.net/manual/en/function.session-regenerate-id.php
 - http://php.net/manual/en/function.hash-algos.php

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #344 from virtualtam/copying
VirtualTam [Sun, 6 Sep 2015 02:07:28 +0000 (04:07 +0200)] 
Merge pull request #344 from virtualtam/copying

COPYING: update contributor list

9 years agoCOPYING: update contributor list 344/head
VirtualTam [Sun, 6 Sep 2015 01:07:25 +0000 (03:07 +0200)] 
COPYING: update contributor list

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoUpdate README.md
VirtualTam [Sun, 6 Sep 2015 00:22:52 +0000 (02:22 +0200)] 
Update README.md

9 years agoMerge pull request #343 from virtualtam/readme
VirtualTam [Sun, 6 Sep 2015 00:16:39 +0000 (02:16 +0200)] 
Merge pull request #343 from virtualtam/readme

Rewrite README.md

9 years agoRewrite README.md 343/head
VirtualTam [Sat, 5 Sep 2015 23:56:37 +0000 (01:56 +0200)] 
Rewrite README.md

Modifications:
 - group content in sections
 - homogenize formatting
 - replace installation instructions by links to the corresponding wiki pages
 - update badges
   - use http://shields.io/ to generate SVGs with custom labels
   - master branch: update Travis label
   - stable branch: add Travis status
   - GitHub release: display the latest released version

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoMerge pull request #340 from virtualtam/doc/update
VirtualTam [Fri, 4 Sep 2015 19:35:27 +0000 (21:35 +0200)] 
Merge pull request #340 from virtualtam/doc/update

Doc: sync from Wiki, generate HTML

9 years agoDoc: sync from Wiki, generate HTML 340/head
VirtualTam [Fri, 4 Sep 2015 19:25:47 +0000 (21:25 +0200)] 
Doc: sync from Wiki, generate HTML

Additions:
 - Installation/Download: how to get Shaarli
 - Community software: ShaarliOS app

Modifications:
 - Installation/Server requirements: PHP 5.4 EOL, PHP 7 announcements
 - Installation/Server configuration: improve Nginx security
 - Troubleshooting: PHP sessions on `free.fr`

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
9 years agoBump version to v0.5.3 v0.5.3
ArthurHoaro [Wed, 2 Sep 2015 16:06:21 +0000 (18:06 +0200)] 
Bump version to v0.5.3

Fixes a bug that could prevent user to login.