Search crashes with the national letter
Bug #1150115 reported by
Mindaugas Žakauskas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Expired
|
Undecided
|
Unassigned |
Bug Description
Search for users by clicking on the initials of their first and last names not working with national letter. For example with Lithuanian language pack.
Message of error:
"Mahara: Invalid Parameter
A required parameter is missing or malformed
The 'f' parameter is not alphabetical only "
Version of Mahara: 1.6.2, 1.6.3
OS: Linux
Database: Postgres 9.1.8
To post a comment you must log in.
I think the problem is with unicode symbols in regex. Regex in param_alphanum function (lib/web.php) update will resolve problem: '/^\pL] +$/u',$ value) instead of preg_match( '/^[a-zA- Z0-9]+$ /',$value) .
preg_match(
Also, maybe needs to review all regex in source there national symbols can appears.