]> git.wh0rd.org Git - tt-rss.git/commitdiff
printTagSelect: work correctly on tags with spaces
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 20 Oct 2013 05:09:16 +0000 (09:09 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 20 Oct 2013 05:09:16 +0000 (09:09 +0400)
classes/dlg.php

index cfa960d9aecc04f375abe5eb4a739841d1e45610..d1b5745e70a5f44341f20fa3e9828b71123738af 100644 (file)
@@ -176,7 +176,7 @@ class Dlg extends Handler_Protected {
 
                while ($row = $this->dbh->fetch_assoc($result)) {
                        $tmp = htmlspecialchars($row["tag_name"]);
-                       print "<option value=\"" . str_replace(" ", "%20", $tmp) . "\">$tmp</option>";
+                       print "<option value=\"$tmp\">$tmp</option>";
                }
 
                print "</select>";