From: Ivan Kohler Date: Mon, 14 Aug 2017 19:48:15 +0000 (-0700) Subject: add tilde to allowable punctuation, RT#77086 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=41dce5ea5713d4c17d054d14824ed590f641ef7a;p=freeside.git add tilde to allowable punctuation, RT#77086 --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 9e471181d..156726be0 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -2643,7 +2643,7 @@ sub ut_currency { =item ut_text COLUMN Check/untaint text. Alphanumerics, spaces, and the following punctuation -symbols are currently permitted: ! @ # $ % & ( ) - + ; : ' " , . ? / = [ ] < > +symbols are currently permitted: ! @ # $ % & ( ) - + ; : ' " , . ? / = [ ] < > ~ May not be null. If there is an error, returns the error, otherwise returns false. @@ -2657,7 +2657,7 @@ sub ut_text { # \p{Word} = alphanumerics, marks (diacritics), and connectors # see perldoc perluniprops $self->getfield($field) - =~ /^([\p{Word} \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]\<\>$money_char]+)$/ + =~ /^([\p{Word} \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]\<\>\~$money_char]+)$/ or return gettext('illegal_or_empty_text'). " $field: ". $self->getfield($field); $self->setfield($field,$1);