mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-25 12:38:37 -04:00
Fix double quotes not escaped in RSS title (share by email)
If an RSS feed title contains double quotes, this prematurely terminates the subject line and prohibits the URL to be added to the email body when using Share->Email. Replace urlencode() with rawurlencode() for all transform functions.
This commit is contained in:
1 parent
5f7bb4f42c
commit
7156a646b2
1 file changed
+6
-9
+6
-9
@@ -19,7 +19,7 @@
|
||||
return array(
|
||||
'shaarli' => array(
|
||||
'url' => '~URL~?post=~LINK~&title=~TITLE~&source=FreshRSS',
|
||||
'transform' => array('urlencode'),
|
||||
'transform' => array('rawurlencode'),
|
||||
'help' => 'http://sebsauvage.net/wiki/doku.php?id=php:shaarli',
|
||||
'form' => 'advanced',
|
||||
),
|
||||
@@ -40,31 +40,28 @@ return array(
|
||||
),
|
||||
'diaspora' => array(
|
||||
'url' => '~URL~/bookmarklet?url=~LINK~&title=~TITLE~',
|
||||
'transform' => array('urlencode'),
|
||||
'transform' => array('rawurlencode'),
|
||||
'help' => 'https://diasporafoundation.org/',
|
||||
'form' => 'advanced',
|
||||
),
|
||||
'twitter' => array(
|
||||
'url' => 'https://twitter.com/share?url=~LINK~&text=~TITLE~',
|
||||
'transform' => array('urlencode'),
|
||||
'transform' => array('rawurlencode'),
|
||||
'form' => 'simple',
|
||||
),
|
||||
'g+' => array(
|
||||
'url' => 'https://plus.google.com/share?url=~LINK~',
|
||||
'transform' => array('urlencode'),
|
||||
'transform' => array('rawurlencode'),
|
||||
'form' => 'simple',
|
||||
),
|
||||
'facebook' => array(
|
||||
'url' => 'https://www.facebook.com/sharer.php?u=~LINK~&t=~TITLE~',
|
||||
'transform' => array('urlencode'),
|
||||
'transform' => array('rawurlencode'),
|
||||
'form' => 'simple',
|
||||
),
|
||||
'email' => array(
|
||||
'url' => 'mailto:?subject=~TITLE~&body=~LINK~',
|
||||
'transform' => array(
|
||||
'link' => array('urlencode'),
|
||||
'title' => array(),
|
||||
),
|
||||
'transform' => array('rawurlencode'),
|
||||
'form' => 'simple',
|
||||
),
|
||||
'print' => array(
|
||||
|
||||
Reference in new issue
Block a user