Workaround for segfaults in some buggy php encoding library versions.
[fa-stable.git] / includes / ui / ui_input.inc
index 448bd8f408eb264a1cbfdb60829a8e8451efdaca..054af15e98ee463c3587ab87b11e4908de4089f1 100644 (file)
@@ -304,7 +304,7 @@ function button($name, $value, $title=false, $icon=false,  $aspect='')
                if ($value == _("Delete")) // Helper during implementation
                        $icon = ICON_DELETE;
                return "<button type='submit' class='editbutton' name='"
-                       .htmlentities(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B'
+                       .html_specials_encode(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B'
                        )))
                        ."' value='1'" . ($title ? " title='$title'":" title='$value'")
                        . ($aspect ? " aspect='$aspect'" : '')