• Resolved woltis

    (@woltis)


    Hi,

    since years I use the regular expression

    ^(.|\n){0,5600}$

    to check, if the text inside a certain field is not longer than 5600 characters. In the newest version of cforms this expression does not work anymore. I always get the error, that the text is too long.

    https://wordpress.org/plugins/cforms2/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter woltis

    (@woltis)

    Any news here? When will this bug be repaired?

    Plugin Author bgermann

    (@bgermann)

    You should check for

    PHP Warning: preg_match(): Compilation failed: regular expression is too large at offset 16

    You should increase PHP settings pcre.backtrack_limit and pcre.recursion_limit for this expression to work properly or reduce the 5600 size.

    Actually this was a bug in 14.10.1 as the regex was never checked in PHP. It was and is still checked in JavaScript, but users can circumvent that.

    Thread Starter woltis

    (@woltis)

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Regular expression does not work anymore’ is closed to new replies.