aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-08-25 10:37:23 +0200
committerGravatar GitHub <noreply@github.com> 2025-08-25 10:37:23 +0200
commit1481cf51f74330f2e76ed10de11bc2d80a6c95d4 (patch)
treea323bc8976de1179fc430414d53d3e5f0c7ff1d4 /app/Controllers
parent339dcb1ea324e19aacfd7be02f75133a70a43d7c (diff)
Fix fetching OPML url with special characters (#7843)
* Decode dynamic OPML url during fetch * add ENT_QUOTES * Store as plaintext instead of decoding
Diffstat (limited to 'app/Controllers')
-rw-r--r--app/Controllers/categoryController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/categoryController.php b/app/Controllers/categoryController.php
index 956a462e1..316136b11 100644
--- a/app/Controllers/categoryController.php
+++ b/app/Controllers/categoryController.php
@@ -59,7 +59,7 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController {
Minz_Request::bad(_t('feedback.tag.name_exists', $cat->name()), $url_redirect);
}
- $opml_url = checkUrl(Minz_Request::paramString('opml_url'));
+ $opml_url = checkUrl(Minz_Request::paramString('opml_url', plaintext: true));
if ($opml_url != '') {
$cat->_kind(FreshRSS_Category::KIND_DYNAMIC_OPML);
$cat->_attribute('opml_url', $opml_url);
@@ -137,7 +137,7 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController {
$position = Minz_Request::paramInt('position') ?: null;
$category->_attribute('position', $position);
- $opml_url = checkUrl(Minz_Request::paramString('opml_url'));
+ $opml_url = checkUrl(Minz_Request::paramString('opml_url', plaintext: true));
if ($opml_url != '') {
$category->_kind(FreshRSS_Category::KIND_DYNAMIC_OPML);
$category->_attribute('opml_url', $opml_url);