]> git.immae.eu Git - github/shaarli/Shaarli.git/log
github/shaarli/Shaarli.git
8 years agoProcess feeds content with Markdown 525/head
ArthurHoaro [Sat, 12 Mar 2016 17:39:57 +0000 (18:39 +0100)] 
Process feeds content with Markdown

8 years agoRemove dev cache disabling
ArthurHoaro [Sat, 26 Mar 2016 15:59:22 +0000 (16:59 +0100)] 
Remove dev cache disabling

8 years agoMerge pull request #520 from ArthurHoaro/plugins/nomarkdown
Arthur [Sat, 26 Mar 2016 15:46:04 +0000 (16:46 +0100)] 
Merge pull request #520 from ArthurHoaro/plugins/nomarkdown

Markdown: Add the 'meta-tag' `.nomarkdown` which prevent a shaare fro…

8 years agoUpdate markdown plugin README documentation 520/head
ArthurHoaro [Sat, 26 Mar 2016 15:43:14 +0000 (16:43 +0100)] 
Update markdown plugin README documentation

  * Add the `.nomarkdown` section.
  * Update misleading statements.

8 years agoMerge pull request #515 from ArthurHoaro/template-feeds
Arthur [Fri, 25 Mar 2016 18:20:55 +0000 (19:20 +0100)] 
Merge pull request #515 from ArthurHoaro/template-feeds

Refactor RSS feeds generation, and do it through templates

8 years agoRefactor filter in LinkDB 515/head
ArthurHoaro [Mon, 21 Mar 2016 20:40:49 +0000 (21:40 +0100)] 
Refactor filter in LinkDB

  * search type now carried by LinkDB in order to factorize code between different search sources.
  * LinkDB->filter split in 3 method: filterSearch, filterHash, filterDay (we know what type of filter is needed).
  * filterHash now throw a LinkNotFoundException if it doesn't exist: internal implementation choice, still displays a 404.
  * Smallhash regex has been rewritten.
  * Unit tests update

8 years agoMakes escape a recursive function which handle array of strings
ArthurHoaro [Sun, 20 Mar 2016 13:14:38 +0000 (14:14 +0100)] 
Makes escape a recursive function which handle array of strings

8 years agoFeedBuilder unit tests
ArthurHoaro [Sat, 12 Mar 2016 16:54:56 +0000 (17:54 +0100)] 
FeedBuilder unit tests

8 years agoCreate a FeedBuilder class which build data for both ATOM and RSS feed.
ArthurHoaro [Sat, 12 Mar 2016 15:08:01 +0000 (16:08 +0100)] 
Create a FeedBuilder class which build data for both ATOM and RSS feed.

8 years agoMerge pull request #521 from ArthurHoaro/hotfix/404login
VirtualTam [Wed, 23 Mar 2016 23:27:15 +0000 (00:27 +0100)] 
Merge pull request #521 from ArthurHoaro/hotfix/404login

Use generateLocation to set the redirection in login (and don't escape the url)

8 years agoUse generateLocation to set the redirection in login (and don't escape the url) 521/head
ArthurHoaro [Mon, 21 Mar 2016 18:06:46 +0000 (19:06 +0100)] 
Use generateLocation to set the redirection in login (and don't escape the url)

8 years agoMarkdown: Add the 'meta-tag' `.nomarkdown` which prevent a shaare from being parsed...
ArthurHoaro [Mon, 21 Mar 2016 17:46:34 +0000 (18:46 +0100)] 
Markdown: Add the 'meta-tag' `.nomarkdown` which prevent a shaare from being parsed with markdown

Also add the tag in tag list in edit_link, so it will appear on autocompletion.

8 years agoReword the ENABLE_RSS_PERMALINKS in the settings.
ArthurHoaro [Sat, 12 Mar 2016 13:48:14 +0000 (14:48 +0100)] 
Reword the ENABLE_RSS_PERMALINKS in the settings.

8 years agoPlugin: add render_feed hook and call it while generating ATOM and RSS feed.
ArthurHoaro [Sat, 12 Mar 2016 13:39:06 +0000 (14:39 +0100)] 
Plugin: add render_feed hook and call it while generating ATOM and RSS feed.

Create an example of the new hook in the demo plugin.

8 years agoRefactor showRSS, and make it use the RSS template
ArthurHoaro [Sat, 12 Mar 2016 13:38:06 +0000 (14:38 +0100)] 
Refactor showRSS, and make it use the RSS template

8 years agoRefactor showAtom, and make it use the ATOM template
ArthurHoaro [Thu, 10 Mar 2016 18:01:30 +0000 (19:01 +0100)] 
Refactor showAtom, and make it use the ATOM template

Minor changes:

  * Fix the date which was in a invalid format.
  * Avoid empty categories (tags).
  * Use the locale to set the language

8 years agoAdds a route for ATOM and RSS feeds page
ArthurHoaro [Thu, 10 Mar 2016 17:48:21 +0000 (18:48 +0100)] 
Adds a route for ATOM and RSS feeds page

8 years agoAdds a RSS template file
ArthurHoaro [Sat, 12 Mar 2016 13:13:41 +0000 (14:13 +0100)] 
Adds a RSS template file

Improvements:

  * Add searchtags in categories domain URL.
  * Language is now based on the locale.
  * Add a generator tag.
  * self link is always displayed.

8 years agoCreate a template to handle ATOM feed
ArthurHoaro [Thu, 10 Mar 2016 17:46:07 +0000 (18:46 +0100)] 
Create a template to handle ATOM feed

ATOM feed improvement:

  * Adds a subtitle to match RSS feed behavior.
  * Better syntax for categories (see http://edward.oconnor.cx/2007/02/representing-tags-in-atom ).
  * Use locale to set the language

8 years agoAdd method assignAll() to pageBuilder to assign an array of data
ArthurHoaro [Thu, 10 Mar 2016 17:41:23 +0000 (18:41 +0100)] 
Add method assignAll() to pageBuilder to assign an array of data

8 years agoMerge pull request #513 from ArthurHoaro/hotfix/retrieve-title-issue
VirtualTam [Mon, 14 Mar 2016 20:29:19 +0000 (21:29 +0100)] 
Merge pull request #513 from ArthurHoaro/hotfix/retrieve-title-issue

Fixes #512: retrieving title didn't match the first closing tag

8 years agoFixes #512: retrieving title didn't match the first closing tag 513/head
ArthurHoaro [Tue, 8 Mar 2016 09:00:53 +0000 (10:00 +0100)] 
Fixes #512: retrieving title didn't match the first closing tag

8 years agoMerge pull request #509 from ArthurHoaro/v0.6.5 v0.6.5
Arthur [Wed, 2 Mar 2016 19:06:33 +0000 (20:06 +0100)] 
Merge pull request #509 from ArthurHoaro/v0.6.5

Bump version to v0.6.5

8 years agoBump version to v0.6.5 509/head
ArthurHoaro [Wed, 2 Mar 2016 18:59:58 +0000 (19:59 +0100)] 
Bump version to v0.6.5

Signed-off-by: ArthurHoaro <arthur@hoa.ro>
8 years agoMerge pull request #504 from ArthurHoaro/hotfix/http_language
Arthur [Tue, 1 Mar 2016 11:15:41 +0000 (12:15 +0100)] 
Merge pull request #504 from ArthurHoaro/hotfix/http_language

Fixes #503: check that HTTP_ACCEPT_LANGUAGE is set before calling autolocale

8 years agoMerge pull request #506 from kalvn/master
Arthur [Tue, 1 Mar 2016 11:15:22 +0000 (12:15 +0100)] 
Merge pull request #506 from kalvn/master

Avoids populating a markdown empty container if there's no description.

8 years agoMerge pull request #505 from ArthurHoaro/hotfix/multi-reverse-proxy
Arthur [Tue, 1 Mar 2016 11:15:10 +0000 (12:15 +0100)] 
Merge pull request #505 from ArthurHoaro/hotfix/multi-reverse-proxy

Fixes #477: support multi reverse proxy with comma syntax

8 years agoAvoids populating a markdown empty container if there's no description. 506/head
kalvn [Sun, 28 Feb 2016 17:24:30 +0000 (18:24 +0100)] 
Avoids populating a markdown empty container if there's no description.

8 years agoFixes #477: support multi reverse proxy with comma syntax 505/head
ArthurHoaro [Sun, 28 Feb 2016 15:24:18 +0000 (16:24 +0100)] 
Fixes #477: support multi reverse proxy with comma syntax

Going through multiple reverse proxy will store multiple scheme and port in HTTP header separated by a comma. Shaarli will use the first one to generate server_url.

8 years agoFixes #503: check that HTTP_ACCEPT_LANGUAGE is set before calling autoLocale() 504/head
ArthurHoaro [Sun, 28 Feb 2016 14:53:28 +0000 (15:53 +0100)] 
Fixes #503: check that HTTP_ACCEPT_LANGUAGE is set before calling autoLocale()

8 years agoMerge pull request #501 from ArthurHoaro/v0.6.4 v0.6.4
Arthur [Sun, 28 Feb 2016 13:34:33 +0000 (14:34 +0100)] 
Merge pull request #501 from ArthurHoaro/v0.6.4

Bump version to v0.6.4

8 years agoBump version to v0.6.4 501/head
ArthurHoaro [Sun, 28 Feb 2016 13:33:05 +0000 (14:33 +0100)] 
Bump version to v0.6.4

Signed-off-by: ArthurHoaro <arthur@hoa.ro>
8 years agoMerge pull request #500 from ArthurHoaro/plugin-icon-style
Arthur [Sun, 28 Feb 2016 13:28:43 +0000 (14:28 +0100)] 
Merge pull request #500 from ArthurHoaro/plugin-icon-style

Fixes #411: remove hardcoded plugin icon size

8 years agoMerge pull request #496 from ArthurHoaro/cross-search
Arthur [Sun, 28 Feb 2016 13:26:46 +0000 (14:26 +0100)] 
Merge pull request #496 from ArthurHoaro/cross-search

Allow crossed search between terms and tags

8 years agoFixes #411: remove hardcoded plugin icon size 500/head
ArthurHoaro [Sun, 28 Feb 2016 13:22:30 +0000 (14:22 +0100)] 
Fixes #411: remove hardcoded plugin icon size

8 years agoAllow crossed search between terms and tags 496/head
ArthurHoaro [Tue, 23 Feb 2016 18:21:14 +0000 (19:21 +0100)] 
Allow crossed search between terms and tags

  * Partial fix of #449
  * Current use case: search term + click on tag.
  * LinkFilter now returns all links if no filter is given.
  * Unit tests.

8 years agoMerge pull request #491 from ArthurHoaro/markdown-escape2
Arthur [Thu, 25 Feb 2016 07:52:42 +0000 (08:52 +0100)] 
Merge pull request #491 from ArthurHoaro/markdown-escape2

Markdown: don't escape content + sanitize sensible tags

8 years agoMerge pull request #495 from nicolasdanelon/patch-3
Arthur [Wed, 24 Feb 2016 18:34:29 +0000 (19:34 +0100)] 
Merge pull request #495 from nicolasdanelon/patch-3

Fixes #494: inputs & labels with plugin name

8 years agoMerge pull request #492 from ArthurHoaro/locale-sort-fix
Arthur [Wed, 24 Feb 2016 18:26:57 +0000 (19:26 +0100)] 
Merge pull request #492 from ArthurHoaro/locale-sort-fix

Fixes #481: tag cloud fatal error

8 years agoUpdate shaarli.css 495/head
Nicolas Danelon [Tue, 23 Feb 2016 13:51:18 +0000 (10:51 -0300)] 
Update shaarli.css

8 years agoFixes #494: inputs & labels with plugin name
Nicolas Danelon [Tue, 23 Feb 2016 13:48:35 +0000 (10:48 -0300)] 
Fixes #494: inputs & labels with plugin name

8 years agoFixes #481: tag cloud fatal error 492/head
ArthurHoaro [Fri, 19 Feb 2016 19:20:33 +0000 (20:20 +0100)] 
Fixes #481: tag cloud fatal error

Only send LC_COLLATE to Collator and check that no error occured.

8 years agoApply the locale to all categories and move autolocale to Utils.php
ArthurHoaro [Fri, 19 Feb 2016 19:14:06 +0000 (20:14 +0100)] 
Apply the locale to all categories and move autolocale to Utils.php

8 years agoMerge pull request #490 from nicolasdanelon/patch-2
Arthur [Fri, 19 Feb 2016 18:46:44 +0000 (19:46 +0100)] 
Merge pull request #490 from nicolasdanelon/patch-2

adding styles for code & pre tags

8 years agoMarkdown: don't escape content + sanitize sensible tags 491/head
ArthurHoaro [Fri, 19 Feb 2016 18:37:13 +0000 (19:37 +0100)] 
Markdown: don't escape content + sanitize sensible tags

Instead of trying to fix broken content for Markdown parsing, parse it unescaped, then sanatize sensible tags such as scripts, etc.

8 years agoadding styles for code & pre tags 490/head
Nicolas Danelon [Fri, 19 Feb 2016 12:58:01 +0000 (09:58 -0300)] 
adding styles for code & pre tags

8 years agoMerge pull request #486 from virtualtam/refactor/datetime
Arthur [Thu, 18 Feb 2016 18:53:39 +0000 (19:53 +0100)] 
Merge pull request #486 from virtualtam/refactor/datetime

cleanup: use DateTime to format dates

8 years agoMerge pull request #470 from ArthurHoaro/description-trim
Arthur [Thu, 18 Feb 2016 18:40:19 +0000 (19:40 +0100)] 
Merge pull request #470 from ArthurHoaro/description-trim

Fixes #468: don't trim description

8 years agoFixes #468: don't trim description 470/head
ArthurHoaro [Wed, 10 Feb 2016 10:31:45 +0000 (11:31 +0100)] 
Fixes #468: don't trim description

Spaces at the start of shaares can be intended. Eg: markdown plugin.

#468

8 years agocleanup: use DateTime to format dates 486/head
VirtualTam [Wed, 17 Feb 2016 21:46:50 +0000 (22:46 +0100)] 
cleanup: use DateTime to format dates

Closes #270

Modifications:
- replace custom date parsing by DateTime calls
- use proper date formatting for RSS feeds

Deletions:
- linkdate2timestamp()
- linkdate2rfc822
- linkdate2iso8601

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #455 from ArthurHoaro/improved-search-454
Arthur [Mon, 15 Feb 2016 20:43:07 +0000 (21:43 +0100)] 
Merge pull request #455 from ArthurHoaro/improved-search-454

Improved search: combine AND, exact terms and exclude search.

8 years agoSupport text search across link fields. 455/head
ArthurHoaro [Tue, 2 Feb 2016 18:42:48 +0000 (19:42 +0100)] 
Support text search across link fields.

8 years agoImproved search: combine AND, exact terms and exclude search.
ArthurHoaro [Mon, 1 Feb 2016 19:33:58 +0000 (20:33 +0100)] 
Improved search: combine AND, exact terms and exclude search.

8 years agoMerge pull request #461 from ArthurHoaro/tagcloud-sort
Arthur [Mon, 15 Feb 2016 20:26:33 +0000 (21:26 +0100)] 
Merge pull request #461 from ArthurHoaro/tagcloud-sort

Fixes #456: Tag cloud does not sort tags (fully) alphabetically

8 years agoMerge pull request #447 from ArthurHoaro/hidden-tags
Arthur [Mon, 15 Feb 2016 20:22:35 +0000 (21:22 +0100)] 
Merge pull request #447 from ArthurHoaro/hidden-tags

Private/Hidden tags

8 years agoPrivate/Hidden tags 447/head
ArthurHoaro [Thu, 21 Jan 2016 19:18:44 +0000 (20:18 +0100)] 
Private/Hidden tags

Tags starting with a dot '.' are now private.
They can only be seen and searched when logged in.

Fixes #315

8 years agoMerge pull request #446 from ArthurHoaro/search-tag-exclude
Arthur [Mon, 15 Feb 2016 20:12:39 +0000 (21:12 +0100)] 
Merge pull request #446 from ArthurHoaro/search-tag-exclude

Add exclusion in tag search

8 years agoRemove first '-' char when saving tags 446/head
ArthurHoaro [Mon, 15 Feb 2016 20:06:17 +0000 (21:06 +0100)] 
Remove first '-' char when saving tags

8 years agoAdd exclusion in tag search
ArthurHoaro [Wed, 20 Jan 2016 22:34:33 +0000 (23:34 +0100)] 
Add exclusion in tag search

  * Searching '-mytag' will now exlude all shaares with 'mytag' tag.
  * All tags starting with a '-' are renamed without it (through the Updater).
  * Unit tests.

Minor code changes:

 * LinkDB->filter() can now take no parameters (get all link depending on logged status).
 * tagsStrToArray() is now static and filters blank tags.

8 years agoMerge pull request #479 from ArthurHoaro/pluginsadmin-error-url
Arthur [Mon, 15 Feb 2016 19:38:31 +0000 (20:38 +0100)] 
Merge pull request #479 from ArthurHoaro/pluginsadmin-error-url

Fixes typo in plugin admin redirection URL

8 years agoMerge pull request #460 from ArthurHoaro/440-editlink-404
Arthur [Mon, 15 Feb 2016 19:38:10 +0000 (20:38 +0100)] 
Merge pull request #460 from ArthurHoaro/440-editlink-404

Fixes #440 - 404 error after editing a link

8 years agoMerge pull request #442 from ArthurHoaro/updater
Arthur [Mon, 15 Feb 2016 19:36:42 +0000 (20:36 +0100)] 
Merge pull request #442 from ArthurHoaro/updater

Introduce the Updater class which

8 years agoFixes typo in plugin admin redirection URL 479/head
ArthurHoaro [Mon, 15 Feb 2016 19:34:44 +0000 (20:34 +0100)] 
Fixes typo in plugin admin redirection URL

8 years agoIntroduce the Updater class which 442/head
ArthurHoaro [Tue, 12 Jan 2016 18:50:48 +0000 (19:50 +0100)] 
Introduce the Updater class which

  * contains methods designed to be run once.
  * is able to upgrade the datastore or the configuration.
  * is based on methods names, stored in a text file with ';' separator (updates.txt).
  * begins with existing function 'mergeDeprecatedConfigFile()' (options.php).

8 years agoMerge pull request #473 from ArthurHoaro/commonhook-order
Arthur [Thu, 11 Feb 2016 19:07:16 +0000 (20:07 +0100)] 
Merge pull request #473 from ArthurHoaro/commonhook-order

Common hooks: process includes before header/footer

8 years agoCommon hooks: process includes before header/footer 473/head
ArthurHoaro [Wed, 10 Feb 2016 14:40:11 +0000 (15:40 +0100)] 
Common hooks: process includes before header/footer

8 years agoMerge pull request #472 from ArthurHoaro/wallabag-version-parameter
Arthur [Wed, 10 Feb 2016 12:09:05 +0000 (13:09 +0100)] 
Merge pull request #472 from ArthurHoaro/wallabag-version-parameter

Wallabag plugin: add version parameter in the meta file

8 years agoWallabag plugin: add version parameter in the meta file 472/head
ArthurHoaro [Wed, 10 Feb 2016 12:08:19 +0000 (13:08 +0100)] 
Wallabag plugin: add version parameter in the meta file

8 years agoFixes #456: Tag cloud does not sort tags (fully) alphabetically 461/head
ArthurHoaro [Fri, 5 Feb 2016 15:10:26 +0000 (16:10 +0100)] 
Fixes #456: Tag cloud does not sort tags (fully) alphabetically

  * Use Collator class to sort tags using the locale (in PECL intl, included in most PHP installation).
  * Use strcasecmp if Collator is not found.

Both sorts are case insensitive.

8 years agoMerge pull request #458 from ArthurHoaro/plugins-init-parameters
Arthur [Thu, 4 Feb 2016 19:29:02 +0000 (20:29 +0100)] 
Merge pull request #458 from ArthurHoaro/plugins-init-parameters

Initialize plugin parameters array to avoid unnecessary warning.

8 years agoMerge pull request #457 from ArthurHoaro/updatecheck-warning
Arthur [Thu, 4 Feb 2016 19:28:52 +0000 (20:28 +0100)] 
Merge pull request #457 from ArthurHoaro/updatecheck-warning

Add a default value to ENABLE_UPDATECHECK to avoid unnecessary warning

8 years agoFixes #440 - 404 error after editing a link 460/head
ArthurHoaro [Thu, 4 Feb 2016 19:24:17 +0000 (20:24 +0100)] 
Fixes #440 - 404 error after editing a link

Remove unnecessary escape().

8 years agoCode cleanup: index.php - save_edit
ArthurHoaro [Thu, 4 Feb 2016 18:58:47 +0000 (19:58 +0100)] 
Code cleanup: index.php - save_edit

8 years agoInitialize plugin parameters array to avoid unnecessary warning. 458/head
ArthurHoaro [Tue, 2 Feb 2016 20:07:25 +0000 (21:07 +0100)] 
Initialize plugin parameters array to avoid unnecessary warning.

8 years agoAdd a default value to ENABLE_UPDATECHECK to avoid unnecessary warning. 457/head
ArthurHoaro [Tue, 2 Feb 2016 19:10:49 +0000 (20:10 +0100)] 
Add a default value to ENABLE_UPDATECHECK to avoid unnecessary warning.

8 years agoMerge pull request #453 from ArthurHoaro/pr450
Arthur [Mon, 1 Feb 2016 18:21:47 +0000 (19:21 +0100)] 
Merge pull request #453 from ArthurHoaro/pr450

Implemented a little more sophisticated searching (squashed)

8 years agoImplemented searching for a phrase in double-quotes or all words in no particular... 453/head
Florian Voigt [Sun, 24 Jan 2016 06:13:11 +0000 (06:13 +0000)] 
Implemented searching for a phrase in double-quotes or all words in no particular order.

+ unit tests

8 years agoMerge pull request #452 from ArthurHoaro/v0.6.3 v0.6.3
Arthur [Sun, 31 Jan 2016 18:47:49 +0000 (19:47 +0100)] 
Merge pull request #452 from ArthurHoaro/v0.6.3

Bump version to v0.6.3

8 years agoBump version to v0.6.3 452/head
ArthurHoaro [Sun, 31 Jan 2016 18:32:22 +0000 (19:32 +0100)] 
Bump version to v0.6.3

8 years agoMerge pull request #451 from ArthurHoaro/markdown-gitdiff
Arthur [Sun, 31 Jan 2016 18:25:29 +0000 (19:25 +0100)] 
Merge pull request #451 from ArthurHoaro/markdown-gitdiff

Fixes forced git changes

8 years agoFixes forced git changes 451/head
ArthurHoaro [Sun, 31 Jan 2016 18:22:14 +0000 (19:22 +0100)] 
Fixes forced git changes

Probably related to the introduction of .gitattribute with forced line ending.

8 years agoMerge pull request #388 from ArthurHoaro/pluginadmin
Arthur [Sun, 31 Jan 2016 18:00:13 +0000 (19:00 +0100)] 
Merge pull request #388 from ArthurHoaro/pluginadmin

Fixes #378 - Plugin administration UI.

8 years agoMerge pull request #379 from ArthurHoaro/plugin-markdown
Arthur [Sun, 31 Jan 2016 17:57:29 +0000 (18:57 +0100)] 
Merge pull request #379 from ArthurHoaro/plugin-markdown

PLUGIN Markdown

8 years agoFixes #378 - Plugin administration UI. 388/head
ArthurHoaro [Wed, 18 Nov 2015 16:40:42 +0000 (17:40 +0100)] 
Fixes #378 - Plugin administration UI.

8 years agoMerge pull request #448 from shaarli/whitespace
Arthur [Sun, 31 Jan 2016 16:50:07 +0000 (17:50 +0100)] 
Merge pull request #448 from shaarli/whitespace

remove whitespace

8 years agofix whitespace 448/head
nodiscc [Fri, 22 Jan 2016 14:00:18 +0000 (15:00 +0100)] 
fix whitespace

8 years agoMerge pull request #444 from dimtion/404_template
Arthur [Thu, 21 Jan 2016 18:27:00 +0000 (19:27 +0100)] 
Merge pull request #444 from dimtion/404_template

Create 404 template

8 years agoCreate 404 template 444/head
Dimtion [Wed, 20 Jan 2016 09:57:07 +0000 (10:57 +0100)] 
Create 404 template

Solve #430 for links

8 years agoBugfix: prevent LinkFilter to work on outdated data.
ArthurHoaro [Wed, 20 Jan 2016 21:51:56 +0000 (22:51 +0100)] 
Bugfix: prevent LinkFilter to work on outdated data.

8 years agoMerge pull request #441 from virtualtam/tests/check-file-permissions
VirtualTam [Sun, 17 Jan 2016 23:29:14 +0000 (00:29 +0100)] 
Merge pull request #441 from virtualtam/tests/check-file-permissions

tests: add a make target to check file permissions

8 years agoMerge pull request #443 from virtualtam/fix/logm-eol
VirtualTam [Sun, 17 Jan 2016 23:28:21 +0000 (00:28 +0100)] 
Merge pull request #443 from virtualtam/fix/logm-eol

fix: use PHP_EOL for carriage returns in file logs

8 years agofix: use PHP_EOL for carriage returns in file logs 443/head
VirtualTam [Sun, 17 Jan 2016 23:24:36 +0000 (00:24 +0100)] 
fix: use PHP_EOL for carriage returns in file logs

Relates to #436

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agotests: add a make target to check file permissions 441/head
VirtualTam [Sun, 17 Jan 2016 19:48:39 +0000 (20:48 +0100)] 
tests: add a make target to check file permissions

Additions:
- [makefile] check versioned files are not executable
- [travis]   call the new make target

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #438 from virtualtam/utils/logm/date-format
VirtualTam [Sun, 17 Jan 2016 19:11:42 +0000 (20:11 +0100)] 
Merge pull request #438 from virtualtam/utils/logm/date-format

Logging: improve formatting to enable fail2ban parsing

8 years agoLogging: improve formatting to enable fail2ban parsing 438/head
VirtualTam [Sat, 16 Jan 2016 15:16:56 +0000 (16:16 +0100)] 
Logging: improve formatting to enable fail2ban parsing

Fixes #436

Modifications:
- remove calls to strval() on safe data
- update the date format: 'Y/m/d_H:i:s' => 'Y/m/d H:i:s'

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #437 from virtualtam/refactor/utils/logm
VirtualTam [Sat, 16 Jan 2016 15:10:14 +0000 (16:10 +0100)] 
Merge pull request #437 from virtualtam/refactor/utils/logm

Logging: move logm() from index.php to application/Utils.php

8 years agoLogging: move logm() from index.php to application/Utils.php 437/head
VirtualTam [Sat, 16 Jan 2016 14:48:26 +0000 (15:48 +0100)] 
Logging: move logm() from index.php to application/Utils.php

Relates to #436

Modifications:
- inject dependencies to global variables ($_SERVER, $GLOBALS)
- apply coding conventions
- add test coverage

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
8 years agoMerge pull request #432 from ArthurHoaro/title-retrieve
VirtualTam [Mon, 11 Jan 2016 20:47:00 +0000 (21:47 +0100)] 
Merge pull request #432 from ArthurHoaro/title-retrieve

Fixes #410 - Retrieve title fails in multiple cases

8 years agoFixes #410 - Retrieve title fails in multiple cases 432/head
ArthurHoaro [Mon, 4 Jan 2016 09:45:54 +0000 (10:45 +0100)] 
Fixes #410 - Retrieve title fails in multiple cases

  * `get_http_url()` renamed to `get_http_response()`.
  * Use the same HTTP context to retrieve response headers and content.
  * Follow HTTP 301 and 302 redirections to retrieve the title (default max 3 redirections).
  * Add `LinkUtils` to extract titles and charset.
  * Try to retrieve charset from HTTP headers first (new), then HTML content.
  * Use mb_string to re-encode title if necessary.

8 years agoGit *wants* to rewrite this file in the exact same way...
ArthurHoaro [Wed, 6 Jan 2016 19:40:17 +0000 (20:40 +0100)] 
Git *wants* to rewrite this file in the exact same way...

Probably a line ending issue...