The regex pre-check is not a bad idea.
At a minimum from this and other bugs it looks clear that this code needs wrapped in a try block, and the error extracted (and de-html'd) from the exception's response for the user.
The regex pre-check is not a bad idea.
At a minimum from this and other bugs it looks clear that this code needs wrapped in a try block, and the error extracted (and de-html'd) from the exception's response for the user.