Ticket #249 (closed bug: fixed)

Opened 5 weeks ago

Last modified 5 weeks ago

Validation (alphanumeric) doesnt work on Centos

Reported by: nuhaa Owned by: somebody
Priority: blocker Milestone: 2.3-dev
Component: forms/validation Keywords:
Cc:

Description

it works fine on Ubuntu dev machines, but when deployed on Centos, it's not.

Change History

Changed 5 weeks ago by nuhaa

  • priority changed from major to blocker
  • status changed from new to closed
  • resolution set to fixed

validation in cakephp is done using unicode, which is not supported by default on centos.

quick fix: in cake/lib/validation.php

change $_this->regex = '/[\p{Ll}\p{Lm}\p{Lo}\p{Lt}\p{Lu}\p{Nd}]+$/mu'; to $_this->regex = '/[a-zA-Z0-9_-]+$/mu';

have to do this everytime cakephp core is upgraded

Note: See TracTickets for help on using tickets.