diff options
| author | Alexandre Gravel-Raymond <alex@ndre.gr> | 2012-05-19 20:26:09 +0200 |
|---|---|---|
| committer | Alexandre Gravel-Raymond <alex@ndre.gr> | 2012-05-19 20:26:09 +0200 |
| commit | b1e592d37f3b8b82cbfb033ba755e75e7415f112 (patch) | |
| tree | 537f14186e20ae2ecaeeba4e6253ed5eb776a9ea | |
| parent | 1bd11fdf9571a9129008af8ae575c5403a393d6a (diff) | |
Escape quotes in bookmarklet confirm message
| -rw-r--r-- | classes/pref_feeds.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref_feeds.php b/classes/pref_feeds.php index db1161c35..61eeb598b 100644 --- a/classes/pref_feeds.php +++ b/classes/pref_feeds.php @@ -1501,7 +1501,7 @@ class Pref_Feeds extends Protected_Handler { $bm_subscribe_url = str_replace('%s', '', add_feed_url()); - $confirm_str = __('Subscribe to %s in Tiny Tiny RSS?'); + $confirm_str = str_replace("'", "\'", __('Subscribe to %s in Tiny Tiny RSS?')); $bm_url = htmlspecialchars("javascript:{if(confirm('$confirm_str'.replace('%s',window.location.href)))window.location.href='$bm_subscribe_url'+window.location.href}"); |