- More changes to syndicate.php to increase performance
- Add checks to newreport.php and search.php to see if there are products or versions, if there aren't, then throw a message about needing them to be setup
- Process custom field data on newreport.php
+- Add regex matching check to process_custom_fields()
1.1.0 Beta 2
===============================
continue;
}
+ if (!empty($field['regexmatch']))
+ {
+ if (!preg_match('#' . str_replace('#', '\#', $field['regexmatch']) . '#si', $inputdata["field$field[fieldid]"]))
+ {
+ $errorlist[] = sprintf(_('%1$s does not match the specified format'), $field['name']);
+ continue;
+ }
+ }
+
if (isset($inputdata["field$field[fieldid]"]))
{
$fieldbuild[] = 'field' . $field['fieldid'];