Contribution Date
Technology
Contribution Project
Contribution Details
1) token_scan used with #element_validate with rename field, so, now on saving a field it validates the string.
2) Pattern is already being trimmed with in this code
$rename = webform_replace_tokens($component['extra']['rename'], $node, $submission, NULL, TRUE);
$new_file_name = _webform_safe_name($rename);
Where the $rename will be string with replaced token which might have leading / trailing white space, with this function "_webform_safe_name" It first do remove the space with "trim", that way our goal is achieved. :)
Looking forward to complete this patch. :)
Contribution Issue Link
Contribution Link
Files count
1
Patches count
1