[geeklog-cvs] geeklog-1.3/public_html comment.php,1.51,1.52
dhaun at geeklog.net
dhaun at geeklog.net
Fri Jan 23 11:56:25 EST 2004
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv11576
Modified Files:
comment.php
Log Message:
Fixed duplicate assignment and added missing addslashes() call.
Index: comment.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** comment.php 21 Jan 2004 20:23:33 -0000 1.51
--- comment.php 23 Jan 2004 16:56:22 -0000 1.52
***************
*** 255,259 ****
$comment = COM_checkWords (COM_checkHTML (addslashes (COM_stripslashes ($comment))));
} else {
! $comment = $comment = htmlspecialchars (COM_checkWords (COM_stripslashes ($comment)));
}
--- 255,259 ----
$comment = COM_checkWords (COM_checkHTML (addslashes (COM_stripslashes ($comment))));
} else {
! $comment = htmlspecialchars (COM_checkWords (COM_stripslashes ($comment)));
}
***************
*** 281,284 ****
--- 281,285 ----
if (!empty ($title) && !empty ($comment)) {
COM_updateSpeedlimit ('comment');
+ $title = addslashes ($title);
$comment = addslashes ($comment);
DB_save ($_TABLES['comments'], 'sid,uid,comment,date,title,pid,type',
More information about the geeklog-cvs
mailing list