Allow more characters in ingredient notes
This commit is contained in:
parent
e8dbbfc354
commit
7ad5943b41
@ -297,7 +297,7 @@ sub _validate_ingredient {
|
|||||||
# Notes get copied, as long as they don't contain junk
|
# Notes get copied, as long as they don't contain junk
|
||||||
if($ingdata -> {"notes"}) {
|
if($ingdata -> {"notes"}) {
|
||||||
if($ingdata -> {"notes"} =~ /$self->{formats}->{notes}/) {
|
if($ingdata -> {"notes"} =~ /$self->{formats}->{notes}/) {
|
||||||
$ingredient -> {"notes"} = $ingdata -> {"notes"};
|
$ingredient -> {"notes"} = $self -> {"template"} -> html_clean($ingdata -> {"notes"});
|
||||||
} else {
|
} else {
|
||||||
$errors .= $self -> {"template"} -> load_template("error/error_item.tem",
|
$errors .= $self -> {"template"} -> load_template("error/error_item.tem",
|
||||||
{ "%(error)s" => "{L_ERR_BADNOTES}" });
|
{ "%(error)s" => "{L_ERR_BADNOTES}" });
|
||||||
|
@ -79,7 +79,7 @@ sub new {
|
|||||||
"quantity" => '^[\d\w./]+$',
|
"quantity" => '^[\d\w./]+$',
|
||||||
"sepname" => '^[-\w,. ]{1,255}$',
|
"sepname" => '^[-\w,. ]{1,255}$',
|
||||||
"ingredient" => '^[-\w,. ]{1,255}$',
|
"ingredient" => '^[-\w,. ]{1,255}$',
|
||||||
"notes" => '^[-()\w,. ]{1,255}$',
|
"notes" => '^[-()\w,."!\'\\/£$%;:@#?><* ]{1,255}$',
|
||||||
};
|
};
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user