Alexandre Alapetite
3f6aa42b81
Fix most PHPDocs errors ( #4107 )
...
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103
https://phpstan.org/writing-php-code/phpdoc-types
3 years ago
Alexandre Alapetite
00dbde68fb
Fix some PHPstan errors ( #4019 )
...
Fix some wrong variables found by https://github.com/FreshRSS/FreshRSS/issues/4016
3 years ago
Alexandre Alapetite
947e918f05
Travis: Enforce phpcs line length + whitespace ( #3488 )
...
* Update Travis line length
* Also check whitespace in CSS files
* Fix line length ext.php
* More syntax, string templates
* Fix exclude-pattern
* Test JS files as well
4 years ago
Alexis Degrugillier
0ce798d40b
Add support for extension user files ( #3433 )
...
Extension user files can be stored easily in the user folder instead of the static folder.
4 years ago
Alexis Degrugillier
d7cfea155f
Fix extension file search ( #3413 )
...
Before, it was possible to retrieve only the files from extensions. Thus
making core extension files unreachable.
Now, the selected file is search through all extensions folders.
4 years ago
Alexis Degrugillier
bed710b260
Refactor extension file script ( #3399 )
4 years ago
Alexandre Alapetite
cd49e9819b
New core-extensions to allow Docker volumes for third-party extensions ( #2837 )
...
* New core-extensions to allow Docker volumes for third-party extensions
#Fix https://github.com/FreshRSS/FreshRSS/issues/2650
Split our extensions directory into two:
1) Core extensions shipped with FreshRSS in ./lib/core-extensions/
2) Third-party extensions modified by end-users in ./extensions/ which
can easily be mounted as a Docker volume
* Example of Docker Compose with extensions
* Back-compatibility + fix array merge bug
5 years ago
Marien Fressinaud
7533676ae7
Add support for images to the ext.php endpoint ( #2465 )
5 years ago
Alexandre Alapetite
74f92658b7
Fix for extensions on Windows ( #2348 )
...
https://github.com/FreshRSS/FreshRSS/issues/994
https://github.com/FreshRSS/FreshRSS/issues/2287
6 years ago
Girish Ramakrishnan
fa3532dc8e
Use realpath of EXTENSIONS_PATH ( #1911 )
...
This handles the case where the extensions directory might be a symlink
6 years ago
Alexandre Alapetite
52d0988655
Use __DIR__ for relative include and require
...
For uniformity, and to avoid having PHP searching in include_path.
http://php.net/manual/function.include.php
https://github.com/FreshRSS/FreshRSS/pull/1715
https://github.com/FreshRSS/FreshRSS/pull/1711#issuecomment-350581350
7 years ago
Marien Fressinaud
a2da70fd11
Fix security hole from ext.php script.
...
Now, ext.php can only serve file under a EXTENSIONS_PATH/ext_dir/static/ directory.
A 400 Bad Request error will be returned for other files.
See https://github.com/FreshRSS/FreshRSS/issues/252
And https://github.com/FreshRSS/FreshRSS/commit/f9b037742a0aeb49cab86782d1a59913c2de47b
10 years ago
Marien Fressinaud
f9b037742a
Update ext.php to serve any file from extensions
...
Add an extension->getFileUrl() method to facilitate url generation
10 years ago
Alexandre Alapetite
5a9b08e084
Primitive extension system: minor change
...
https://github.com/marienfressinaud/FreshRSS/issues/252
10 years ago
Alexandre Alapetite
febabccdd5
Primitive extension system
...
https://github.com/marienfressinaud/FreshRSS/issues/252
I have been using this extension system for a little while, in
particular to include custom CSS and/or JavaScript (inclusion of PHP
code is not done yet).
There is very little code and it does not impact performances.
I hurry to post it before
https://github.com/marienfressinaud/FreshRSS/issues/655
10 years ago