$line["content"] = preg_replace("/href=/i", "target=\"_new\" href=", $line["content"]);
}
+ $line["content"] = sanitize_rss($line["content"]);
+
print $line["content"] . "</div>";
print "</div>";
print "</td>";
- $auth_login = db_fetch_result($result, 0, "auth_login");
+ $auth_login = escape_for_form(db_fetch_result($result, 0, "auth_login"));
print "<tr><td>Login:</td>";
print "<td><input class=\"iedit\" onkeypress=\"return filterCR(event)\"
name=\"auth_login\" value=\"$auth_login\"></td></tr>";
- $auth_pass = db_fetch_result($result, 0, "auth_pass");
+ $auth_pass = escape_for_form(db_fetch_result($result, 0, "auth_pass"));
print "<tr><td>Password:</td>";
print "<td><input class=\"iedit\" type=\"password\" name=\"auth_pass\"
$res = preg_replace('/<\/script>/i',
"</p>", $res);
+ $res = preg_replace('/<object.*?>.*?<\/object>/i',
+ "<p class=\"objectWarn\">(Disabled html object
+ - flash or other embedded content)</p>", $str);
+
+ $res = preg_replace('/<\/object>/i',
+ "</p>", $res);
+
return $res;
}
}
}
+ function escape_for_form($s) {
+ return htmlspecialchars(db_unescape_string($s));
+ }
+
?>