mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-27 18:20:08 +02:00
[ticket/11008] Change onunload_functions to not use eval()
PHPBB3-11008
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
{
|
||||
for (var i = 0; i < onload_functions.length; i++)
|
||||
{
|
||||
eval(onload_functions[i]);
|
||||
onload_functions[i]();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
{
|
||||
for (var i = 0; i < onunload_functions.length; i++)
|
||||
{
|
||||
eval(onunload_functions[i]);
|
||||
onunload_functions[i]();
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user