print_info_box_apply() code issue, there doesn't appear to be a reason to set an action url here. sprintf() expects the second argument to be mapped "somewhere"

This commit is contained in:
Ad Schellevis 2018-02-15 21:09:21 +01:00
parent b85cd97da0
commit b5d6cddbdc

View File

@ -210,7 +210,7 @@ function print_info_box_apply($msg)
$value = 'Apply changes';
$name= 'apply';
$savebutton = sprintf('<form action="' . $_SERVER['REQUEST_URI'] . '" method="post">', $_SERVER['REQUEST_URI']);
$savebutton = '<form method="post">';
$savebutton .= sprintf(
'<button type="submit" name="%s" id="%s" class="btn btn-primary pull-right" value="%s">%s</button>',
$name,