Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
locale.module
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2012 at 09:16 UTC
Updated:
29 Jul 2014 at 21:13 UTC
on this line :core/modules/locale/locale.module : 333
$plural_indexes[$langcode][$count] = @eval('return intval(' . $plural_formulas[$langcode]['formula'] . ');');
do we really need an eval for this? can we not use an numeric expression evaluator?
http://code.google.com/p/wikiplot/source/browse/trunk/src/PlotClass/eval...
would that not be safer?
mike
Comments
Comment #1
swentel commented#1273968: remove eval from locale.module