[freeside-commits] branch FREESIDE_4_BRANCH updated. 41dce5ea5713d4c17d054d14824ed590f641ef7a
Ivan
ivan at 420.am
Mon Aug 14 12:48:16 PDT 2017
The branch, FREESIDE_4_BRANCH has been updated
via 41dce5ea5713d4c17d054d14824ed590f641ef7a (commit)
from 78614fdd18b325902088617ba62e67caff34ddf0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 41dce5ea5713d4c17d054d14824ed590f641ef7a
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon Aug 14 12:48:15 2017 -0700
add tilde to allowable punctuation, RT#77086
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 9e47118..156726b 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);
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Record.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list