--- base/mod/data/lib.php 2009-06-09 16:00:27.000000000 -0700 +++ working_copy/mod/data/lib.php 2009-06-17 16:10:52.000000000 -0700 @@ -613,7 +613,10 @@ // then we generate strings to replace $tagsok = true; // let's be optimistic foreach ($fields as $field) { - $pattern="/\[\[".$field->name."\]\]/i"; + // MOD -- added preg_quote to fix issues that could arise if slashes were in the field name + //$pattern="/\[\[".$field->name."\]\]/i"; + $pattern="/\[\[".preg_quote($field->name, '/')."\]\]/i"; + // End MOD if (preg_match_all($pattern, $template, $dummy)>1) { $tagsok = false; notify ('[['.$field->name.']] - '.get_string('multipletags','data'));