From 46e2527c5a5c8b0300fa03e7fdd5dada17529db7 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 31 May 2013 11:23:12 +0300 Subject: [PATCH] do not redirect if record id has not been changed --- web/edit/dns/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/edit/dns/index.php b/web/edit/dns/index.php index c2a66042..99d246d2 100644 --- a/web/edit/dns/index.php +++ b/web/edit/dns/index.php @@ -212,7 +212,7 @@ if ((!empty($_GET['domain'])) && (empty($_GET['record_id']))) { $_SESSION['ok_msg'] = __('Changes has been saved.'); } - if ($_GET['record_id'] != $_POST['v_record_id']) { + if ((empty($_SESSION['error_msg'])) && ($_GET['record_id'] != $_POST['v_record_id'])) { header("Location: /edit/dns/?domain=".$_GET['domain']."&record_id=".$_POST['v_record_id']); exit; }