aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-08-29 18:06:56 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-08-29 18:06:56 +0000
commit9f7db6a21c9031b9140989fd3f3c03a1b658f64b (patch)
tree767c5460f777668d89fe81bdc7d5a283c479f483 /phpBB/includes/functions_display.php
parent563feb4d39ec3895e859ffa6e7cd185a9c915a4f (diff)
downloadforums-9f7db6a21c9031b9140989fd3f3c03a1b658f64b.tar
forums-9f7db6a21c9031b9140989fd3f3c03a1b658f64b.tar.gz
forums-9f7db6a21c9031b9140989fd3f3c03a1b658f64b.tar.bz2
forums-9f7db6a21c9031b9140989fd3f3c03a1b658f64b.tar.xz
forums-9f7db6a21c9031b9140989fd3f3c03a1b658f64b.zip
fixed: slashing attachment comments (hopefully)
changed header. git-svn-id: file:///svn/phpbb/trunk@4458 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php31
1 files changed, 12 insertions, 19 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 7ed65d5968..cc3010f03d 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -1,23 +1,15 @@
<?php
-/***************************************************************************
- * functions_display.php
- * ------------------
- * begin : Saturday, Feb 13, 2001
- * copyright : (C) 2001 The phpBB Group
- * email : support@phpbb.com
- *
- * $Id$
- *
- ***************************************************************************/
-
-/***************************************************************************
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- ***************************************************************************/
+// -------------------------------------------------------------
+//
+// $Id$
+//
+// FILENAME : functions_display.php
+// STARTED : Thu Nov 07, 2002
+// COPYRIGHT : © 2001, 2003 phpBB Group
+// WWW : http://www.phpbb.com/
+// LICENCE : GPL vs2.0 [ see /docs/COPYING ]
+//
+// -------------------------------------------------------------
function display_forums($root_data = '', $display_moderators = TRUE)
{
@@ -332,6 +324,7 @@ function display_attachments($attachment_data, &$update_count, $force_physical =
$display_name = $attachment['real_filename'];
$comment = stripslashes(trim(str_replace("\n", '<br />', $attachment['comment'])));
+ $comment = htmlspecialchars(str_replace("\\'", "'", $comment));
$denied = FALSE;