WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3abb97c

Browse files
author
5050
committed
TXTand SPF was lowered
because of wrong boolean test
1 parent 47e1af3 commit 3abb97c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/dns_manager/code/controller.ext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static function DnsRecordField($type, $ttl, $description, $userID, $domainID)
135135
if (self::IsTypeAllowed($type)) {
136136
if ($type === 'A') {
137137
$activeCss = 'active';
138-
if (ctrl_options::GetSystemOption('custom_ip') == strtolower("false")) {
138+
if (ctrl_options::GetSystemOption('custom_ip') == 'false') {
139139
$custom_ip = "READONLY";
140140
} else {
141141
$custom_ip = NULL;
@@ -722,7 +722,7 @@ static function SaveDNS()
722722
if (isset($target['new_' . $id]) && !fs_director::CheckForEmptyValue($target['new_' . $id])) {
723723
//If Custom IP addresses are not allowed.
724724
if ($type['new_' . $id] == 'A') {
725-
if (ctrl_options::GetSystemOption('custom_ip') == strtolower("false")) {
725+
if (ctrl_options::GetSystemOption('custom_ip') == 'false') {
726726
if (!fs_director::CheckForEmptyValue(ctrl_options::GetSystemOption('server_ip'))) {
727727
$target['new_' . $id] = ctrl_options::GetSystemOption('server_ip');
728728
} else {
@@ -1102,7 +1102,7 @@ static function CleanRecord($data, $type)
11021102
}
11031103

11041104
// We'll leave the content for SPF and TXT records and won't try to make them look better by strtolower'ing them.
1105-
if ($type != 'SPF' || $type != 'TXT') {
1105+
if (!($type == 'SPF' || $type == 'TXT')) {
11061106
$data = strtolower($data);
11071107
}
11081108

0 commit comments

Comments
 (0)