mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Missing class="post" tags ... hopefully this doesn't break everything (I've not checked them individually ... just randomly), some user management things ... note the user admin is still not in sync with user profile ... one has to be altered.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3149 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -38,6 +38,9 @@ require($phpbb_root_path . 'includes/functions_post.'.$phpEx);
|
||||
require($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
|
||||
require($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
|
||||
|
||||
$html_entities_match = array('#<#', '#>#');
|
||||
$html_entities_replace = array('<', '>');
|
||||
|
||||
//
|
||||
// Set mode
|
||||
//
|
||||
@@ -753,7 +756,7 @@ if( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) |
|
||||
}
|
||||
else
|
||||
{
|
||||
$this_userdata = get_userdata( $HTTP_POST_VARS['username'] );
|
||||
$this_userdata = get_userdata(htmlspecialchars($HTTP_POST_VARS['username']));
|
||||
if( !$this_userdata )
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );
|
||||
@@ -778,7 +781,9 @@ if( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) |
|
||||
$location = htmlspecialchars($this_userdata['user_from']);
|
||||
$occupation = htmlspecialchars($this_userdata['user_occ']);
|
||||
$interests = htmlspecialchars($this_userdata['user_interests']);
|
||||
$signature = ( $this_userdata['user_sig_bbcode_uid'] != '' ) ? htmlspecialchars(preg_replace("/:(([a-z0-9]+:)?)" . $this_userdata['user_sig_bbcode_uid'] . "\]/si", ']', $userdata['user_sig'])) : htmlspecialchars($userdata['user_sig']);
|
||||
|
||||
$signature = ($this_userdata['user_sig_bbcode_uid'] != '') ? preg_replace('#:' . $this_userdata['user_sig_bbcode_uid'] . '#si', '', $this_userdata['user_sig']) : $this_userdata['user_sig'];
|
||||
$signature = preg_replace($html_entities_match, $html_entities_replace, $signature);
|
||||
|
||||
$viewemail = $this_userdata['user_viewemail'];
|
||||
$notifypm = $this_userdata['user_notify_pm'];
|
||||
|
Reference in New Issue
Block a user