mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-44657 forms: Form identifiers should only contain basic characters
This commit is contained in:
parent
683d7de4d1
commit
68ef378b1b
@ -211,7 +211,9 @@ abstract class moodleform {
|
||||
* @return string form identifier.
|
||||
*/
|
||||
protected function get_form_identifier() {
|
||||
return get_class($this);
|
||||
$class = get_class($this);
|
||||
|
||||
return preg_replace('/[^a-z0-9_]/i', '_', $class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user