NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016752phplist applicationInternationalization (l18n)public17-03-13 13:4618-03-13 16:41
PlatformOSOS Version
Product Version2.11.7 
Target VersionFixed in Version2.11.8 
Summary0016752: Use vsprintf instead of eval
DescriptionProblem found in the SVN trunk version.

The function s() in file languages.php can be simplified by using the vsprintf() function, which takes an array of arguments, instead of eval.

function s($text) {
  ## allow overloading with sprintf paramaters
  $translation = $GLOBALS['I18N']->get($text);

  if (func_num_args() > 1) {
    $args = func_get_args();
    $translation = vsprintf($translation, $args);
  return $translation;
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
michiel (manager)
18-03-13 16:41

brilliant! so much better that way

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker