Commit 180a79a3 authored by Dries's avatar Dries

- Patch #779430 by coltrane: filter_xss_admin() user picture guidelines.

parent 45f4a1e1
...@@ -1041,7 +1041,7 @@ function user_account_form(&$form, &$form_state) { ...@@ -1041,7 +1041,7 @@ function user_account_form(&$form, &$form_state) {
'#type' => 'file', '#type' => 'file',
'#title' => t('Upload picture'), '#title' => t('Upload picture'),
'#size' => 48, '#size' => 48,
'#description' => t('Your virtual face or picture. Maximum dimensions are %dimensions pixels and the maximum size is %size kB.', array('%dimensions' => variable_get('user_picture_dimensions', '85x85'), '%size' => variable_get('user_picture_file_size', '30'))) . ' ' . variable_get('user_picture_guidelines', ''), '#description' => t('Your virtual face or picture. Maximum dimensions are %dimensions pixels and the maximum size is %size kB.', array('%dimensions' => variable_get('user_picture_dimensions', '85x85'), '%size' => variable_get('user_picture_file_size', '30'))) . ' ' . filter_xss_admin(variable_get('user_picture_guidelines', '')),
); );
$form['#validate'][] = 'user_validate_picture'; $form['#validate'][] = 'user_validate_picture';
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment