- πΈπ°Slovakia poker10
Thanks for working on this. Agree with @oriol_e9g, the patch #1 is not correct.
Here is the validation image_effect_color function.
We can see that $hex_value is clearly unused, and so preg_replace function is not used for anything.
/**
* Element validate handler to ensure a hexadecimal color value.
*/
function image_effect_color_validate($element, &$form_state) {
if ($element['#value'] != '') {
$hex_value = preg_replace('/^#/', '', $element['#value']);
if (!preg_match('/^#[0-9A-F]{3}([0-9A-F]{3})?$/', $element['#value'])) {
form_error($element, t('!name must be a hexadecimal color value.', array('!name' => $element['#title'])));
}
}
}
Needs work
7.0 β°οΈ
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Thanks for working on this. Agree with @oriol_e9g, the patch #1 is not correct.