Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/firewall_aliases_edit.php | ||
---|---|---|
51 | 51 |
|
52 | 52 |
$pgtitle = array(gettext("Firewall"),gettext("Aliases"),gettext("Edit")); |
53 | 53 |
|
54 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/firewall_aliases.php'); |
|
55 |
|
|
54 | 56 |
// Keywords not allowed in names |
55 | 57 |
$reserved_keywords = array("all", "pass", "block", "out", "queue", "max", "min", "pptp", "pppoe", "L2TP", "OpenVPN", "IPsec"); |
56 | 58 |
|
... | ... | |
746 | 748 |
<td width="22%" valign="top"> </td> |
747 | 749 |
<td width="78%"> |
748 | 750 |
<input id="submit" name="submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> |
749 |
<input type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" />
|
|
751 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
|
750 | 752 |
</td> |
751 | 753 |
</tr> |
752 | 754 |
</table> |
Formats disponibles : Unified diff
Remove almost all calls to history.back() and make Cancel button back to HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work