i hoped this got fixed in RC3, but i had to discover, that
MAX/MINLENGTH and BETWEEN are still not validating correctly
although i did include the following in bootstrap:
App::import('Core','Multibyte');
it does not change the normal str functions to mb_str functions
i do NOT understand the usage of the "old" normal functions anyway
lets say, somebody types a "german" Ä into a form that has a field
which requires at least 2 characters.
without proper usage of mb_ the form would return OK here, so even for
all those
american cake people out there, it would make sense to change to the
multibyte functions
anyway.. does anybody know how to get this to work?
am i still missing something? as the multibyte.php and its functions
should be already included now
i am still at the point from 5 months ago, which means hardcoded
changes in the /cake/libs/ folder in order to get it to work
BEFORE:
function between($check, $min, $max) {
$length = strlen($check);
if ($length >= $min && $length <= $max) {
return true;
} else {
return false;
}
}
AFTER:
function between($check, $min, $max) {
$length = mb_strlen($check,'UTF-8'); // HACK to get it to
work
properly!!!
if ($length >= $min && $length <= $max) {
return true;
} else {
return false;
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---