mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:05:56 +00:00
fix some brackets issues in feed editor
This commit is contained in:
15
backend.php
15
backend.php
@@ -806,15 +806,18 @@
|
|||||||
}
|
}
|
||||||
print "<td align='center'>$feed_icon</td>";
|
print "<td align='center'>$feed_icon</td>";
|
||||||
|
|
||||||
|
$edit_title = htmlspecialchars(db_unescape_string($line["title"]));
|
||||||
|
$edit_link = htmlspecialchars(db_unescape_string($line["feed_url"]));
|
||||||
|
|
||||||
if (!$edit_feed_id || $subop != "edit") {
|
if (!$edit_feed_id || $subop != "edit") {
|
||||||
|
|
||||||
print "<td><input onclick='toggleSelectRow(this);'
|
print "<td><input onclick='toggleSelectRow(this);'
|
||||||
type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
|
type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
|
||||||
|
|
||||||
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
|
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
|
||||||
$line["title"] . "</td>";
|
$edit_title . "</td>";
|
||||||
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
|
print "<td><a href=\"javascript:editFeed($feed_id);\">" .
|
||||||
$line["feed_url"] . "</td>";
|
$edit_link . "</td>";
|
||||||
|
|
||||||
if ($line["update_interval"] == "0")
|
if ($line["update_interval"] == "0")
|
||||||
$line["update_interval"] = "Default";
|
$line["update_interval"] = "Default";
|
||||||
@@ -827,8 +830,8 @@
|
|||||||
print "<td><input disabled=\"true\" type=\"checkbox\"
|
print "<td><input disabled=\"true\" type=\"checkbox\"
|
||||||
id=\"FRCHK-".$line["id"]."\"></td>";
|
id=\"FRCHK-".$line["id"]."\"></td>";
|
||||||
|
|
||||||
print "<td>".$line["title"]."</td>";
|
print "<td>$edit_title</td>";
|
||||||
print "<td>".$line["feed_url"]."</td>";
|
print "<td>$edit_link</td>";
|
||||||
|
|
||||||
if ($line["update_interval"] == "0")
|
if ($line["update_interval"] == "0")
|
||||||
$line["update_interval"] = "Default";
|
$line["update_interval"] = "Default";
|
||||||
@@ -839,8 +842,8 @@
|
|||||||
|
|
||||||
print "<td><input disabled=\"true\" type=\"checkbox\"></td>";
|
print "<td><input disabled=\"true\" type=\"checkbox\"></td>";
|
||||||
|
|
||||||
print "<td><input id=\"iedit_title\" value=\"".$line["title"]."\"></td>";
|
print "<td><input id=\"iedit_title\" value=\"$edit_title\"></td>";
|
||||||
print "<td><input id=\"iedit_link\" value=\"".$line["feed_url"]."\"></td>";
|
print "<td><input id=\"iedit_link\" value=\"$edit_link\"></td>";
|
||||||
print "<td><input id=\"iedit_updintl\" value=\"".$line["update_interval"]."\"></td>";
|
print "<td><input id=\"iedit_updintl\" value=\"".$line["update_interval"]."\"></td>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
6
db.php
6
db.php
@@ -103,6 +103,12 @@ function db_fetch_result($result, $row, $param) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function db_unescape_string($str) {
|
||||||
|
$tmp = str_replace("\\\"", "\"", $str);
|
||||||
|
$tmp = str_replace("\\'", "'", $tmp);
|
||||||
|
return $tmp;
|
||||||
|
}
|
||||||
|
|
||||||
function db_close($link) {
|
function db_close($link) {
|
||||||
if (DB_TYPE == "pgsql") {
|
if (DB_TYPE == "pgsql") {
|
||||||
|
|
||||||
|
|||||||
4
opml.php
4
opml.php
@@ -24,8 +24,8 @@
|
|||||||
$result = db_query($link, "SELECT * FROM ttrss_feeds ORDER BY title");
|
$result = db_query($link, "SELECT * FROM ttrss_feeds ORDER BY title");
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
$title = $line["title"];
|
$title = htmlspecialchars($line["title"]);
|
||||||
$url = $line["feed_url"];
|
$url = htmlspecialchars($line["feed_url"]);
|
||||||
|
|
||||||
print "<outline text=\"$title\" xmlUrl=\"$url\"/>";
|
print "<outline text=\"$title\" xmlUrl=\"$url\"/>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user