diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2003-08-29 18:06:56 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-08-29 18:06:56 +0000 |
| commit | 9f7db6a21c9031b9140989fd3f3c03a1b658f64b (patch) | |
| tree | 767c5460f777668d89fe81bdc7d5a283c479f483 /phpBB/posting.php | |
| parent | 563feb4d39ec3895e859ffa6e7cd185a9c915a4f (diff) | |
| download | forums-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/posting.php')
| -rw-r--r-- | phpBB/posting.php | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 0fdf3bf7b6..b9459802d0 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1,23 +1,15 @@ <?php -/*************************************************************************** - * posting.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 : posting.php +// STARTED : Sat Feb 17, 2001 +// COPYRIGHT : © 2001, 2003 phpBB Group +// WWW : http://www.phpbb.com/ +// LICENCE : GPL vs2.0 [ see /docs/COPYING ] +// +// ------------------------------------------------------------- define('IN_PHPBB', true); $phpbb_root_path = './'; @@ -228,7 +220,13 @@ if ($sql != '') // Get Attachment Data $message_parser->attachment_data = (isset($_POST['attachment_data'])) ? $_POST['attachment_data'] : array(); - + + // Make sure we do not add slashes twice... + foreach ($message_parser->attachment_data as $pos => $var) + { + $message_parser->attachment_data[$pos]['comment'] = stripslashes($message_parser->attachment_data[$pos]['comment']); + } + if ($post_attachment && !$submit && !$refresh && !$preview && $mode == 'edit') { $sql = 'SELECT d.* |
