printTagSelect: work correctly on tags with spaces

master
Andrew Dolgov 11 years ago
parent 3f7d1b58e6
commit 29f7ec0ae3

@ -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>";

Loading…
Cancel
Save