@@ -38,7 +38,7 @@ public function init()
3838 $ this ->setDecorators ( [ [ 'ViewScript ' , [ 'viewScript ' => 'customer/forms/edit.phtml ' ] ] ] );
3939
4040 $ name = $ this ->createElement ( 'text ' , 'name ' );
41- $ name ->addValidator ( 'stringLength ' , false , array ( 1 , 255 ) )
41+ $ name ->addValidator ( 'stringLength ' , false , array ( 1 , 255 , ' UTF-8 ' ) )
4242 ->setRequired ( true )
4343 ->setLabel ( 'Name ' )
4444 ->setAttrib ( 'class ' , 'span10 ' )
@@ -56,7 +56,7 @@ public function init()
5656 $ this ->addElement ( $ type );
5757
5858 $ shortname = $ this ->createElement ( 'text ' , 'shortname ' );
59- $ shortname ->addValidator ( 'stringLength ' , false , array ( 1 , 255 ) )
59+ $ shortname ->addValidator ( 'stringLength ' , false , array ( 1 , 255 , ' UTF-8 ' ) )
6060 ->addValidator ( 'alnum ' )
6161 ->addValidator ( 'regex ' , false , array ('/^[a-z0-9]+/ ' ) )
6262 ->setRequired ( true )
@@ -67,7 +67,7 @@ public function init()
6767 $ this ->addElement ( $ shortname );
6868
6969 $ corpwww = $ this ->createElement ( 'text ' , 'corpwww ' );
70- $ corpwww ->addValidator ( 'stringLength ' , false , array ( 0 , 255 ) )
70+ $ corpwww ->addValidator ( 'stringLength ' , false , array ( 0 , 255 , ' UTF-8 ' ) )
7171 ->setRequired ( false )
7272 ->setAttrib ( 'placeholder ' , 'http://www.example.com/ ' )
7373 ->setAttrib ( 'class ' , 'span10 ' )
@@ -77,7 +77,7 @@ public function init()
7777 $ this ->addElement ( $ corpwww );
7878
7979 $ datejoin = $ this ->createElement ( 'text ' , 'datejoin ' );
80- $ datejoin ->addValidator ( 'stringLength ' , false , array ( 10 , 10 ) )
80+ $ datejoin ->addValidator ( 'stringLength ' , false , array ( 10 , 10 , ' UTF-8 ' ) )
8181 ->addValidator ( 'regex ' , false , array ('/^\d\d\d\d-\d\d-\d\d/ ' ) )
8282 ->setRequired ( false )
8383 ->setLabel ( 'Date Joined ' )
@@ -88,7 +88,7 @@ public function init()
8888 $ this ->addElement ( $ datejoin );
8989
9090 $ dateleave = $ this ->createElement ( 'text ' , 'dateleave ' );
91- $ dateleave ->addValidator ( 'stringLength ' , false , array ( 10 , 10 ) )
91+ $ dateleave ->addValidator ( 'stringLength ' , false , array ( 10 , 10 , ' UTF-8 ' ) )
9292 ->addValidator ( 'regex ' , false , array ('/^\d\d\d\d-\d\d-\d\d/ ' ) )
9393 ->setRequired ( false )
9494 ->setAttrib ( 'placeholder ' , 'YYYY-MM-DD ' )
@@ -141,7 +141,7 @@ public function init()
141141
142142 $ peeringemail = $ this ->createElement ( 'text ' , 'peeringemail ' );
143143 $ peeringemail ->addValidator ('emailAddress ' )
144- ->addValidator ( 'stringLength ' , false , array ( 0 , 64 ) )
144+ ->addValidator ( 'stringLength ' , false , array ( 0 , 64 , ' UTF-8 ' ) )
145145 ->setRequired ( false )
146146 ->setAttrib ( 'class ' , 'span8 ' )
147147 ->
setAttrib (
'placeholder ' ,
'[email protected] ' )
@@ -159,7 +159,7 @@ public function init()
159159
160160
161161 $ peeringmacro = $ this ->createElement ( 'text ' , 'peeringmacro ' );
162- $ peeringmacro ->addValidator ( 'stringLength ' , false , array ( 0 , 255 ) )
162+ $ peeringmacro ->addValidator ( 'stringLength ' , false , array ( 0 , 255 , ' UTF-8 ' ) )
163163 ->setRequired ( false )
164164 ->setLabel ( 'Peering Macro ' )
165165 ->addFilter ( 'StringTrim ' )
@@ -185,7 +185,7 @@ public function init()
185185 $ this ->getDisplayGroup ( 'peeringDisplayGroup ' )->setLegend ( 'Peering Details ' );
186186
187187 $ nocphone = $ this ->createElement ( 'text ' , 'nocphone ' );
188- $ nocphone ->addValidator ( 'stringLength ' , false , array ( 0 , 255 ) )
188+ $ nocphone ->addValidator ( 'stringLength ' , false , array ( 0 , 255 , ' UTF-8 ' ) )
189189 ->setRequired ( false )
190190 ->setLabel ( 'Phone ' )
191191 ->setAttrib ( 'placeholder ' , '+353 1 123 4567 ' )
@@ -195,7 +195,7 @@ public function init()
195195 $ this ->addElement ( $ nocphone );
196196
197197 $ noc24hphone = $ this ->createElement ( 'text ' , 'noc24hphone ' );
198- $ noc24hphone ->addValidator ( 'stringLength ' , false , array ( 0 , 255 ) )
198+ $ noc24hphone ->addValidator ( 'stringLength ' , false , array ( 0 , 255 , ' UTF-8 ' ) )
199199 ->setRequired ( false )
200200 ->setAttrib ( 'placeholder ' , '+353 86 876 5432 ' )
201201 ->setAttrib ( 'class ' , 'span8 ' )
@@ -205,7 +205,7 @@ public function init()
205205 $ this ->addElement ( $ noc24hphone );
206206
207207 $ nocfax = $ this ->createElement ( 'text ' , 'nocfax ' );
208- $ nocfax ->addValidator ( 'stringLength ' , false , array ( 0 , 40 ) )
208+ $ nocfax ->addValidator ( 'stringLength ' , false , array ( 0 , 40 , ' UTF-8 ' ) )
209209 ->setRequired ( false )
210210 ->setLabel ( 'Fax ' )
211211 ->setAttrib ( 'placeholder ' , '+353 1 765 4321 ' )
@@ -216,7 +216,7 @@ public function init()
216216
217217 $ nocemail = $ this ->createElement ( 'text ' , 'nocemail ' );
218218 $ nocemail ->addValidator ('emailAddress ' )
219- ->addValidator ( 'stringLength ' , false , array ( 0 , 40 ) )
219+ ->addValidator ( 'stringLength ' , false , array ( 0 , 40 , ' UTF-8 ' ) )
220220 ->setRequired ( false )
221221 ->setAttrib ( 'class ' , 'span8 ' )
222222 ->
setAttrib (
'placeholder ' ,
'[email protected] ' )
@@ -233,7 +233,7 @@ public function init()
233233
234234
235235 $ nocwww = $ this ->createElement ( 'text ' , 'nocwww ' );
236- $ nocwww ->addValidator ( 'stringLength ' , false , array ( 0 , 255 ) )
236+ $ nocwww ->addValidator ( 'stringLength ' , false , array ( 0 , 255 , ' UTF-8 ' ) )
237237 ->setRequired ( false )
238238 ->setLabel ( 'Website ' )
239239 ->setAttrib ( 'placeholder ' , 'http://www.noc.example.com/ ' )
0 commit comments