]> git.wh0rd.org Git - tt-rss.git/commitdiff
feed edit dialog: make unsubscribe button work for feeds with quotes in title
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 17 Nov 2008 05:49:06 +0000 (06:49 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 17 Nov 2008 05:49:06 +0000 (06:49 +0100)
modules/pref-feeds.php
modules/pref-filters.php

index 613e9bf407fabde1af5e14846f9d5d951e70cbaf..1acc58114f1bbdc23b45f4635820706e39316776 100644 (file)
 
                        print "</form>";
 
+                       $title = htmlspecialchars($title, ENT_QUOTES);
+
                        print "<div class='dlgButtons'>
                                <div style=\"float : left\">
                                        <input type='submit' class='button'                     
index 4ada43370bc35a362a49c9e12865b3cbfb1c7446..fa47bdca85aea5ac3544bf508429c43c925809fd 100644 (file)
 
                        print "<div class=\"dlgButtons\">";
 
-                       $reg_exp = htmlspecialchars($reg_exp); // second escaping seems to be needed for javascript
+                       $reg_exp = htmlspecialchars($reg_exp, ENT_QUOTES); // second escaping seems to be needed for javascript
 
                        print "<div style=\"float : left\">";
                        print "<input type=\"submit\"