Bug 202278: Quips are escaped now, no need for HTML-like blocking - Patch by Fr�d�ric Buclin <LpSolit@gmail.com> r=wurblzap a=myk

This commit is contained in:
lpsolit%gmail.com 2005-06-29 21:54:50 +00:00
Родитель c71eb7127c
Коммит dd28989c37
2 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -79,7 +79,6 @@ if ($action eq "add") {
(Param('quip_list_entry_control') eq "open") || (UserInGroup('admin')) || 0;
my $comment = $cgi->param("quip");
$comment || ThrowUserError("need_quip");
$comment !~ m/</ || ThrowUserError("no_html_in_quips");
SendSQL("INSERT INTO quips (userid, quip, approved) VALUES " .
'(' . $userid . ', ' . SqlQuote($comment) . ', ' . $approved . ')');

Просмотреть файл

@ -858,11 +858,6 @@
and an error
occurred opening yesterday's dupes file: [% error_msg FILTER html %].
[% ELSIF error == "no_html_in_quips" %]
[% title = "No HTML In Quips" %]
Sorry - for security reasons, support for HTML tags has been turned off
in quips.
[% ELSIF error == "no_new_quips" %]
[% title = "No New Quips" %]
This site does not permit the addition of new quips.