itamart / moodle-mod_dataform

The Dataform is an enhanced counterpart of the standard Database activity module
17 stars 19 forks source link

Fix wrongly escaped regular expressions. #13

Open rodrigoq opened 7 years ago

rodrigoq commented 7 years ago

Most regular expressions in the project are wrongly escaped. I fixed the ones that had the same error, but there are others. All preg_* functions that receive a variable as pattern parameter should be checked.

Without this fix there was a parsing error, to test set the name of a field something like: "A / B"

itamart commented 7 years ago

Thanks. I will review the escaping of all regexp and fix for the next release.