Patch: https://github.com/phpbb/phpbb3/pull/904
Intorduction
One of the things that we are getting rid of is the function eval() in the phpBB php core. But I still can't find if you are planning to get rid of eval in js too.
My proposal is to remove all eval in javascript.
The problems that stands out
The first this that stands out is the
Code: Select all
eval(onload_functions[i]);
Code: Select all
eval(onunload_functions[i]);
I'll also leave the third that stands out.
Code: Select all
eval('parent = document.' + id);
What to do, then?
My proposal is to get rid of all these needless eval() (all eval that I found don't even need to be there).
The easiest to show what I mean is use:
Code: Select all
parent = document[id];
Code: Select all
eval('parent = document.' + id);
The
Code: Select all
eval(onload_functions[i]);
-> If this is accepted I can do that job myself.
Proposed to appear in phpbb 3.1 or in a next phpbb 3.0.*