Skip to content

Commit

Permalink
fix redirect headers after post
Browse files Browse the repository at this point in the history
  • Loading branch information
geeks121 committed Jan 29, 2025
1 parent 193eb8e commit f2f5d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/www/tools/default-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ function updateSettingsIni_sing($settingsFile, $newValue) {
$selectedYaml = $_POST['yaml_file'];
updateSettingsIni_clash($settingsFile, $selectedYaml);
// Redirect to prevent form resubmission
header("Location: /tools/box-yaml.php");
header("Location: /tools/default-config.php");
exit();
}
if (isset($_POST['json_file'])) {
$selectedJson = $_POST['json_file'];
updateSettingsIni_sing($settingsFile, $selectedJson);
// Redirect to prevent form resubmission
header("Location: /tools/box-yaml.php");
header("Location: /tools/default-config.php");
exit();
}
}
Expand Down

0 comments on commit f2f5d36

Please sign in to comment.