fname and lname check functions allow to use any symbols in Name and
Surname fields in registration form.
File: tagsets\participant.php lines 116, 128
Solution:
function participant__check_fname($required) {
participant__check_exist("fname",$required);
global $errors__dataform, $lang;
if ($_REQUEST['fname']) {
$isok=ereg("^[A-Z]{0,1}[a-z]+\$",$_REQUEST['fname']);
if (!$isok) {
$errors__dataform[]="fname";
message($lang['fname_not_ok']);
}
}
}
function participant__check_lname($required) {
participant__check_exist("lname",$required);
global $errors__dataform, $lang;
if ($_REQUEST['lname']) {
$isok=ereg("^[A-Z]{0,1}[a-z]+\$",$_REQUEST['lname']);
if (!$isok) {
$errors__dataform[]="lname";
message($lang['lname_not_ok']);
}
}
}
/* was
function participant__check_fname($required) {
participant__check_exist("fname",$required);
function participant__check_lname($required) {
participant__check_exist("lname",$required);
*/
Ben Greiner
Public Area
None
Public
|
Date: 2008-10-13 05:04 We have many international users, which use many languages, some of them |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-10-13 05:04 | bengreiner |
| resolution_id | None | 2008-10-13 05:04 | bengreiner |
| close_date | - | 2008-10-13 05:04 | bengreiner |