[geeklog-cvs] Geeklog-1.x/system lib-comment.php,1.67,1.68
Michael Jervis
mjervis at qs1489.pair.com
Sun Sep 14 03:10:18 EDT 2008
Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv29966/system
Modified Files:
lib-comment.php
Log Message:
#0000737 - HTML encoded titles on comment reply isse.
Each check-in makes me cry a little, as I know another will comit it elsewhere and take all credit. How rude and disrespectful.
Index: lib-comment.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-comment.php,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** lib-comment.php 27 Jul 2008 15:21:00 -0000 1.67
--- lib-comment.php 14 Sep 2008 07:10:15 -0000 1.68
***************
*** 94,98 ****
$cmt_title = stripslashes($title);
$commentbar->set_var('story_title', $cmt_title);
! $cmt_title = htmlspecialchars($cmt_title);
$commentbar->set_var('comment_title', $cmt_title);
--- 94,101 ----
$cmt_title = stripslashes($title);
$commentbar->set_var('story_title', $cmt_title);
! // Article's are pre-escaped.
! if( $type != 'article' ) {
! $cmt_title = htmlspecialchars($cmt_title);
! }
$commentbar->set_var('comment_title', $cmt_title);
More information about the geeklog-cvs
mailing list