Skip to content
Snippets Groups Projects
Commit 180a79a3 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 45f4a1e1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment