Commit 5fe11d74 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix redirect on apply when interface is passed as $_GET

parent 9b653bf4
......@@ -210,6 +210,8 @@ function print_info_box_apply($msg)
$savebutton .= '<input name="' . $name . '" type="submit" class="btn btn-primary pull-right" id="' . $name . '" value="' . $value . '" />';
if (!empty($_POST['if'])) {
$savebutton .= '<input type="hidden" name="if" value="' . htmlspecialchars($_POST['if']) . '" />';
} elseif (!empty($_GET['if'])) {
$savebutton .= '<input type="hidden" name="if" value="' . htmlspecialchars($_GET['if']) . '" />';
}
$savebutton .= '</form>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment