Commit Graph

7003 Commits

Author SHA1 Message Date
Alexandre Alapetite
49f920e19d Fix filter double encoding (#3563)
#fix https://github.com/FreshRSS/FreshRSS/issues/3562
The content is already HTML-safe
2021-03-26 13:37:43 +01:00
Alexandre Alapetite
7e38bb0b57 Changelog 2021-03-24 19:11:14 +01:00
Alexandre Alapetite
de40f3ad56 Fix TT-RSS import (#3553) 2021-03-24 19:04:51 +01:00
Alexandre Alapetite
06fa514483 Compatibility ORIG_PATH_INFO (#3560)
#fix https://github.com/FreshRSS/FreshRSS/issues/3542
2021-03-24 18:39:26 +01:00
Alexandre Alapetite
d04166532a Changelog 1.18.1-dev 2021-03-23 22:33:09 +01:00
Alexandre Alapetite
90a0028d49 Fix DB lock bug during refresh (MariaDB) (#3559)
#fix https://github.com/FreshRSS/FreshRSS/issues/3552
2021-03-23 22:31:48 +01:00
Alexandre Alapetite
780e81a8a0 GitHub action latest tag (#3524)
https://github.com/marketplace/actions/latest-tag
2021-03-23 18:48:41 +01:00
Alexandre Alapetite
b88e44a594 Check pdo_sqlite for export/import SQLite (#3545) 2021-03-23 16:29:58 +01:00
Alexandre Alapetite
0ff6ba4542 SimplePie fix PHP8 uncatched error (#3547)
#fix https://github.com/FreshRSS/FreshRSS/pull/3546
When `loadHTML()` is given a null or empty string.

```
PHP Fatal error:  Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /var/www/freshrss/lib/SimplePie/SimplePie/Locator.php:83
```
2021-03-23 10:54:14 +01:00
berumuron
dd80445d69 Readd sub.feed.auth.configuration i18n key (#3554)
I thought the key was useless after 2c4f169, but it’s still used on
update feed page.

Reference: https://github.com/FreshRSS/FreshRSS/pull/3516#issuecomment-804306448
2021-03-23 10:35:50 +01:00
Alexis Degrugillier
4f4ce3c71b Remove shortcut validation (#3548)
Before, only standard shortcuts were supported. When other shortcuts were
configured, they were filtered out.
Now, those shortcuts are stored in the configuration and an alert message
is displayed to alert the user that he is using non-standard shortcuts.

See #3481
2021-03-21 15:42:27 +01:00
Alexandre Alapetite
e2533bd946 Fix undefined variable & dead code when adding feed (#3546)
Related to https://github.com/FreshRSS/FreshRSS/issues/3537
2021-03-21 12:23:32 +01:00
Alexandre Alapetite
a62d6288b1 Fix init in CLI install (#3544)
#fix https://github.com/FreshRSS/FreshRSS/issues/3528
config was not properly reloaded after being populated
2021-03-20 18:25:55 +01:00
Alexis Degrugillier
789a166496 Fix search param encoding in user query (#3541)
Before, the chosen encoding was not the best for the task since some part
of the value was truncated when used with quotes.
Now, the encoding allows to work smoothly with quotes.

See #3538
2021-03-19 13:51:42 +01:00
Alexandre Alapetite
b3340c32e3 Prepare 1.18.1-dev 2021-03-15 00:08:21 +01:00
Alexandre Alapetite
1c3159058f Quick update the doc for master renaming to edge 2021-03-15 00:00:25 +01:00
Alexandre Alapetite
769f34e958 Release 1.18.0 1.18.0 2021-03-14 18:45:12 +01:00
ThomasSmallert
7822ba6f1c Add ThomasSmallert to CREDITS.md (#3520) 2021-03-14 18:02:52 +01:00
ThomasSmallert
efba11ee37 If cURL is not installed, the script stops with a fatal error. (#3519)
* If cURL is not installed, the script stops with a fatal error.

The script stops with the following message.
Fatal error: Uncaught Error: Call to undefined function curl_version()

* Update app/install.php

Fix whitespace

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-03-14 16:53:34 +01:00
berumuron
2c4f169f0a Hide advanced options in new feed form (#3516)
* Hide new feed advanced options in a details tag

The form was huge and hard to process for beginners. Most of the fields
are optional 99% of time, there is no need to have them so proeminently.

* Remove sub.feed.auth.configuration i18n key

* Sync RTL css files

* Fix stylelint

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Fix "for" attributes in add feed form

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-03-13 18:55:43 +01:00
Alexandre Alapetite
b455b29c8c FocusReader (#3514) 2021-03-10 20:28:58 +01:00
Mejans
184ab6bc85 i18n Update for Occitan language (#3511)
* Update conf.php

* Update feedback.php

* Update gen.php

* Update index.php

* Update install.php

* Update sub.php

* Update sub.php

* Update install.php

* Update gen.php

* Update oc.php

* Fix ignore

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-03-10 20:28:42 +01:00
Alexandre Alapetite
fd3af5169e Changelog 1.18.0-rc 2021-03-09 21:23:38 +01:00
Jules-Bertholet
800a42172d Add an option to set a custom user agent to retrieve individual feeds (#3494)
* Add an option to set a custom user agent to retrieve individual feeds

This allows retrieving the original RSS feed when websites use services like FeedBurner.

* Use !== instead of != in subscriptionController.php

* Add proxy and user-agent to subscription/add

Co-authored-by: Georgelemental <georgelemental@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-03-09 20:51:09 +01:00
Alexandre Alapetite
09b7e87532 Changelog 2021-03-09 08:56:38 +01:00
Alexandre Alapetite
b7fdfbb894 SimplePie prevent cache pollution (#3502)
* SimplePie prevent cache polution
#fix https://github.com/FreshRSS/FreshRSS/pull/3367#issuecomment-766250249
#fix https://github.com/FreshRSS/FreshRSS/pull/3494#issuecomment-790113663

* Fix bug

* Minor improvement

* Update cache filename in FreshRSS (1/2)

* cacheFilename temp

* New SimplePie get_cache_filename()

* Fix typos

* Update lib/SimplePie/SimplePie.php

Typo

* Include user-agent and timeout

* fix array_merge

* Declaration

* force_feed was lost in a commit
2021-03-09 08:41:47 +01:00
Alexandre Alapetite
ef4a826e34 Reload full content when changed (#3506)
* Reload full content when changed
If an article is changed, reload also its full content when applicable.

* Compute hash before getting full content

* Revert mix two PRs

* Update app/Controllers/feedController.php
2021-03-09 08:41:01 +01:00
Alexandre Alapetite
385e7f883a Changelog 2021-03-07 22:21:17 +01:00
Alexandre Alapetite
0206fc1e5e fix updateEntryPrepared (#3500) 2021-03-07 19:41:17 +01:00
Alexandre Alapetite
b10cd770ee SQLite: fix updateEntry (#3461)
* Draft of fix for updateEntry

#fix https://github.com/FreshRSS/FreshRSS/issues/3130

* Fix for SQLite

* Update app/Models/EntryDAO.php

Fixed in https://github.com/FreshRSS/FreshRSS/pull/3500

* Unbuffered streaming only for MySQL
2021-03-07 17:34:47 +01:00
Alexandre Alapetite
51ed59dcc6 jQuery 3.6.0 (#3501)
https://blog.jquery.com/2021/03/02/jquery-3-6-0-released/
2021-03-07 12:54:17 +01:00
Alexandre Alapetite
27c4194c8e Disable built-in update when using Docker (#3496)
#fix https://github.com/FreshRSS/FreshRSS/issues/3495
2021-03-04 21:18:34 +01:00
Alexandre Alapetite
be8dd8598e Travis remove superfluous PHP version (#3492) 2021-02-28 15:24:04 +01:00
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
2021-02-28 12:26:24 +01:00
Alexandre Alapetite
bf2718cada More changelog 2021-02-28 12:18:49 +01:00
Myuki
7b4c544579 Optimize some themes for mobile view (#3491)
* Optimize some themes for mobile view

* Fix syntax
2021-02-28 12:12:26 +01:00
Alexandre Alapetite
8cf8817598 Changelog + credits 2021-02-27 22:49:03 +01:00
Alexis Degrugillier
13a47d34af Update issue templates (#3490)
* Update issue templates

Add templates for issues and feature requests.

* Update bug_report.md

* Update bug_report.md

* Update bug_report.md
2021-02-27 18:05:46 +01:00
Alexis Degrugillier
ea5cd595c9 Remove + conversion in search except for tags (#3489)
Before, every + sign was converted to a space to allow to search for
spaces. But the documentation stated that to search for space one has
to enclose the string in quotes. This has a confusing behavior when
searching for a string containing a + sign.
Now, the + conversion is kept only for the tag search since it's the
only one documented that way.

See #3454
2021-02-27 17:34:48 +01:00
Myuki
064288ed62 Optimize theme Pafat for the mobile view (#3480)
* Optimize theme Pafat for mobile view

* Change min-width in @media

* Better backward compatibility

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Better backward compatibility

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2021-02-27 12:16:29 +01:00
Alexandre Alapetite
0d69175875 Alpine oldest: php5-openssl (#3482)
alpine:3.13 require php5-openssl for some https features.

Otherwise, fail on e.g. the extension page:

```
file_get_contents(): php Unable to find the wrapper "https" - did you
forget to enable it when you configured PHP? in
/var/www/FreshRSS/app/Controllers/extensionController.php on line 45

PHP Warning:
file_get_contents(https://raw.githubusercontent.com/FreshRSS/Extensions/master/extensions.json):
failed to open stream: No such file or directory in
/var/www/FreshRSS/app/Controllers/extensionController.php on line 45

[error] --- Could not fetch available extension from GitHub
```

Does not seem required for newer Alpine versions using PHP7 / PHP8
2021-02-27 11:22:06 +01:00
Alexis Degrugillier
6be9797a26 Update PHPUnit version (#3487)
Tests weren't running with the previous version because of a reserved word in PHP8. The latest version of the library fixes that.
See https://github.com/sebastianbergmann/phpunit/issues/4373 for more
information.
2021-02-27 10:36:11 +01:00
Alexis Degrugillier
449fee7a2c "Show all" option on labels (#3472)
It uses the favorite option to keep a similar experience through out the application and also to limit the number of options.

See #3263
2021-02-26 23:31:01 +01:00
Alexis Degrugillier
a127f7dae3 Display dropdown menu in BlueLagoon and Screwdriver themes (#3485)
See #3447
2021-02-26 23:19:04 +01:00
Alexandre Alapetite
3499f8f1d1 Extensions in CLI (#3443)
* Extensions in CLI

https://github.com/FreshRSS/FreshRSS/pull/3440#discussion_r574659745

* Also user extensions
2021-02-26 19:34:02 +01:00
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.
2021-02-26 18:42:10 +01:00
Brooke
9ea3e7710a Upgrade PHPMailer to 6.3.0 (#3457)
* Upgrade PHPMailer to 6.2.0

* Bump PHPMailer to 6.3.0

Co-authored-by: berumuron <dev@marienfressinaud.fr>
2021-02-24 16:20:40 +01:00
Myuki
b38a887f01 Update zh-cn Translation (#3473) 2021-02-22 21:52:04 -05:00
Alexis Degrugillier
fd80387541 Change zip handling methods (#3470)
Before, we were using zip function but they are marked as deprecated as of
PHP 8.0. It's not safe to use them anymore since they can be removed at any
given time.
Now, we are using the ZipArchive class to handle our zip methods. It's safe
to use it since it's available for PHP 5.2 and higher.

See #3460
2021-02-21 00:51:53 +01:00
Alexandre Alapetite
75711c3647 Manual update to SimplePie 1.5.6 (#3469)
* Manual update to SimplePie 1.5.6

Follow-up of https://github.com/FreshRSS/FreshRSS/pull/3206 (1.5.5)
Differences
692e8bc19b...155cfcfacd
Related to https://github.com/FreshRSS/FreshRSS/pull/3416 ,
https://github.com/FreshRSS/FreshRSS/pull/3404

* Typo
2021-02-20 23:38:36 +01:00