summaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Thomas White <TomW1605@users.noreply.github.com> 2024-06-06 02:44:38 +0800
committerGravatar GitHub <noreply@github.com> 2024-06-05 20:44:38 +0200
commit2ed58f814eab9c3bbdada6b8e2ebfccfc9395894 (patch)
treee949b1cce6842490eca9c5490ead7903ca7bfb33 /app/Controllers/configureController.php
parente17c2c447906deb471e25cdc889b9f74e1d715d2 (diff)
add image and description to user query share (#6541)
* add description to user queries and rss feed * add image url to user queries and rss feed * Fix i18n * remove itunes image tag and xml definition --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Controllers/configureController.php')
-rw-r--r--app/Controllers/configureController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index d766aa97d..8ec14fce9 100644
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -397,6 +397,12 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController {
if (!empty($params['shareOpml']) && ctype_digit($params['shareOpml'])) {
$queryParams['shareOpml'] = (bool)$params['shareOpml'];
}
+ if (!empty($params['description']) && is_string($params['description'])) {
+ $queryParams['description'] = htmlspecialchars_decode($params['description'], ENT_QUOTES);
+ }
+ if (!empty($params['imageUrl']) && is_string($params['imageUrl'])) {
+ $queryParams['imageUrl'] = $params['imageUrl'];
+ }
$queryParams['url'] = Minz_Url::display(['params' => $queryParams]);
$queryParams['name'] = $name;