Replace invalid character in ID
This commit is contained in:
parent
87c4275ba9
commit
80a0396500
@ -40,7 +40,7 @@ if ($SESS->level > 1)
|
|||||||
{
|
{
|
||||||
$ex = new Exercice();
|
$ex = new Exercice();
|
||||||
|
|
||||||
$ex->id = $element->getAttribute("id");
|
$ex->id = preg_replace("/[^a-zA-Z0-9_]/g", "_", $element->getAttribute("id"));
|
||||||
$ex->level = $element->getAttribute("level");
|
$ex->level = $element->getAttribute("level");
|
||||||
if ($element->hasAttribute("depends"))
|
if ($element->hasAttribute("depends"))
|
||||||
$ex->require = $element->getAttribute("depends");
|
$ex->require = $element->getAttribute("depends");
|
||||||
|
Loading…
Reference in New Issue
Block a user