[Phpbbkb-checkins] SF.net SVN: phpbbkb: [58] main/trunk/includes/functions_kb.php
Status: Alpha
Brought to you by:
markthedaemon
|
From: <mar...@us...> - 2007-02-21 00:48:53
|
Revision: 58
http://svn.sourceforge.net/phpbbkb/?rev=58&view=rev
Author: markthedaemon
Date: 2007-02-20 16:48:50 -0800 (Tue, 20 Feb 2007)
Log Message:
-----------
Stop the silly people from trying to destroy us ^_^
Modified Paths:
--------------
main/trunk/includes/functions_kb.php
Modified: main/trunk/includes/functions_kb.php
===================================================================
--- main/trunk/includes/functions_kb.php 2007-02-20 23:16:40 UTC (rev 57)
+++ main/trunk/includes/functions_kb.php 2007-02-21 00:48:50 UTC (rev 58)
@@ -294,9 +294,9 @@
$smilies_on = ( !empty($HTTP_POST_VARS['disable_smilies']) ) ? 0 : 1;
}
- $article_desc = ( !empty($HTTP_POST_VARS['desc']) ) ? trim($HTTP_POST_VARS['desc']) : '';
- $article_title = ( !empty($HTTP_POST_VARS['title']) ) ? trim($HTTP_POST_VARS['title']) : '';
- $message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
+ $article_desc = ( !empty($HTTP_POST_VARS['desc']) ) ? trim(stripslashes($HTTP_POST_VARS['desc'])) : '';
+ $article_title = ( !empty($HTTP_POST_VARS['title']) ) ? trim(stripslashes($HTTP_POST_VARS['title'])) : '';
+ $message = ( !empty($HTTP_POST_VARS['message']) ) ? stripslashes($HTTP_POST_VARS['message']) : '';
$article_author = ($mode == 'edit') ? $article['article_author'] : $userdata['user_id'];
$article_authorname = ( $mode == 'edit' ) ? ( ( empty($HTTP_POST_VARS['authorname']) ) ? $article['article_authorname'] : $HTTP_POST_VARS['authorname'] ) : ( ( empty($HTTP_POST_VARS['authorname']) ) ? $userdata['username'] : $HTTP_POST_VARS['authorname'] );
$bbcode_uid = ($mode == 'edit' ) ? $article['bbcode_uid'] : '';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|