[geeklog-cvs] geeklog: Removed duplicate code (already handled in CMT_prepareT...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Apr 20 08:13:53 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3040521a0550
changeset: 6976:3040521a0550
user: Dirk Haun <dirk at haun-online.de>
date: Sun Apr 19 22:24:03 2009 +0200
description:
Removed duplicate code (already handled in CMT_prepareText)
diffstat:
1 file changed, 12 deletions(-)
system/lib-comment.php | 12 ------------
diffs (22 lines):
diff -r 10ee0d905977 -r 3040521a0550 system/lib-comment.php
--- a/system/lib-comment.php Sun Apr 19 22:23:01 2009 +0200
+++ b/system/lib-comment.php Sun Apr 19 22:24:03 2009 +0200
@@ -811,18 +811,6 @@
$commenttext = htmlspecialchars (COM_stripslashes ($comment));
- $fakepostmode = $postmode;
- if ($postmode == 'html') {
- $html_perm = ($type == 'article') ? 'story.edit' : "$type.edit";
- $comment = COM_checkWords(COM_checkHTML(COM_stripslashes($comment), $html_perm));
- } else {
- $comment = htmlspecialchars(COM_checkWords(COM_stripslashes($comment)));
- $newcomment = COM_makeClickableLinks ($comment);
- if (strcmp ($comment, $newcomment) != 0) {
- $comment = nl2br ($newcomment);
- $fakepostmode = 'html';
- }
- }
// Replace $, {, and } with special HTML equivalents
$commenttext = str_replace('$','$',$commenttext);
$commenttext = str_replace('{','{',$commenttext);
More information about the geeklog-cvs
mailing list