Thanks for reporting and suggesting fix directly, highly appreciated
I would suggest following fix instead, which takes care of user-inputed leading-zeros, which was the intention of the (int) typecasing:
[code:1] if ( in_array( (string) ( (int) $value ), $forbiddenContent ) ) {
[/code:1]
Can you please confirm that this fix proposal also works for you ?
#1408