Skip to content

Commit f5defaf

Browse files
committed
Default to the records tab for found dns zones, #6436
1 parent d53109a commit f5defaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/web/capp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646

4747
if (!preg_match("/^[a-z]{2,20}$/i", $mod)) die('module name contains unallowed chars.');
48-
if ($redirect != '' && !preg_match("/^[a-z0-9]+\/[a-z0-9_\.\-]+\?id=[0-9]{1,9}(\&type=[a-z0-9_\.\-]+)?$/i", $redirect)) die('redirect contains unallowed chars.');
48+
if ($redirect != '' && !preg_match("/^[a-z0-9]+\/[a-z0-9_\.\-]+\?id=[0-9]{1,9}(\&type=[a-z0-9_\.\-]+)?(\&next_tab=[a-z0-9_\.\-]+)?$/i", $redirect)) die('redirect contains unallowed chars.');
4949

5050
//* Check if user may use the module.
5151
$user_modules = explode(",", $_SESSION["s"]["user"]["modules"]);

interface/web/dashboard/ajax_get_json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
$result[] = _search('mail', 'mail_get');
110110

111111
// dns zones
112-
$result[] = _search('dns', 'dns_soa');
112+
$result[] = _search('dns', 'dns_soa', '', 'next_tab=dns_records');
113113

114114
// secondary dns zones
115115
$result[] = _search('dns', 'dns_slave');

0 commit comments

Comments
 (0)