From 82de9040b2d99c05060be6396bab8bd74db96f6c Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 2 Nov 2010 00:28:13 +0000 Subject: [PATCH] fix for uumlaut problem, RT#10359 --- FS/FS/Record.pm | 4 +++- httemplate/edit/cust_main/contact.html | 6 +++--- httemplate/view/cust_main/billing.html | 2 +- httemplate/view/cust_main/contacts.html | 14 +++++++------- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 4f0984c74..0df3f4427 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -2458,7 +2458,9 @@ May not be null. sub ut_name { my( $self, $field ) = @_; - $self->getfield($field) =~ /^([\w \,\.\-\']+)$/ +# warn "ut_name allowed alphanumerics: +(sort grep /\w/, map { chr() } 0..255), "\n"; + #$self->getfield($field) =~ /^([\w \,\.\-\']+)$/ + $self->getfield($field) =~ /^([µ_0123456789aAáÁàÀâÂåÅäÄãêæÆbBcCçÇdDðÐeEéÉèÈêÊëËfFgGhHiIíÍìÌîÎïÏjJkKlLmMnNñÑoOóÓòÒôÔöÖõÕøغpPqQrRsSßtTuUúÚùÙûÛüÜvVwWxXyYýÝÿzZþÞ \,\.\-\']+)$/ or return gettext('illegal_name'). " $field: ". $self->getfield($field); $self->setfield($field,$1); ''; diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index feb61db8d..99bc558c3 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -3,8 +3,8 @@ <%$r%>Contact name
(last, first) - <%$style%>> , - <%$style%>> + <%$style%>> , + <%$style%>> % if ( $conf->exists('show_ss') && !$pre ) { @@ -21,7 +21,7 @@ Company - <%$style%>> + <%$style%>> diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index dd195236a..014ddaba2 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -132,7 +132,7 @@ Billing information Attention - <% $cust_main->payname %> + <% $cust_main->payname |h %> % } elsif ( $cust_main->payby eq 'COMP' ) { diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index e88c02ea5..e91af54e6 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -10,7 +10,7 @@ Contact name - <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %> + <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") |h %> % if ( $which eq '' && $conf->exists('show_ss') ) { SS# @@ -19,11 +19,11 @@ Company - <% $cust_main->get("${pre}company") %> + <% $cust_main->get("${pre}company") |h %> Address - <% $cust_main->get("${pre}address1") %> + <% $cust_main->get("${pre}address1") |h %> % if ( $cust_main->get("${pre}address2") ) { @@ -36,20 +36,20 @@ <% $address2_label %> - <% $cust_main->get("${pre}address2") %> + <% $cust_main->get("${pre}address2") |h %> % } City - <% $cust_main->get("${pre}city") %> + <% $cust_main->get("${pre}city") |h %> % if ( $cust_main->get("${pre}county") ) { County - <% $cust_main->get("${pre}county") %> + <% $cust_main->get("${pre}county") |h %> % } State - <% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) %> + <% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) |h %> Zip <% $cust_main->get("${pre}zip") %> -- 2.11.0