aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-03-26 13:13:06 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-03-26 13:13:06 +0000
commit7de3ac24deb62b2acac904c108a7e78119b3ecb7 (patch)
tree0c22d9b8ee72576262cc20a01c5e3cac695216fa
parent24bf0e140d94ec8d94a383f8ed3ce07167840d31 (diff)
downloadforums-7de3ac24deb62b2acac904c108a7e78119b3ecb7.tar
forums-7de3ac24deb62b2acac904c108a7e78119b3ecb7.tar.gz
forums-7de3ac24deb62b2acac904c108a7e78119b3ecb7.tar.bz2
forums-7de3ac24deb62b2acac904c108a7e78119b3ecb7.tar.xz
forums-7de3ac24deb62b2acac904c108a7e78119b3ecb7.zip
Fix bug with editing polls containing options with quotes
git-svn-id: file:///svn/phpbb/trunk@2438 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 61dbc349c1..35a8fd0fc1 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1064,7 +1064,7 @@ if( ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] )
while( list($option_id, $option_text) = each($poll_options) )
{
$template->assign_block_vars('poll_option_rows', array(
- 'POLL_OPTION' => $option_text,
+ 'POLL_OPTION' => str_replace("\"", "&quot;", $option_text),
'S_POLL_OPTION_NUM' => $option_id)
);