From fd5c458b0aae011d266f0606dc0f6cfdf6e9aad3 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Fri, 17 Jan 2014 14:24:42 +0000 Subject: [PATCH] Couine fort pour prevenir qu'on n'importe pas correctement le poid lors d'import d'MX --- bureau/class/m_dom.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index d7155627..db3ab351 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -331,8 +331,8 @@ class m_dom { // @ IN MX 10 aspmx.l.google.com. // arf 3600 IN MX 20 pouet.fr. if ( preg_match('/^(?P[\-\w\.@]*)\h*(?P\d*)\h*IN\h+MX\h+(?P\d+)\h+(?P[@\w+\.\-]+)/i', $zone, $ret) ) { - $val['status'] = 'ok'; - $val['comment'] = "Create entry MX with ".$ret['sub']." go to ".$ret['target']." with ttl ".$ret['ttl']." and weight ".$ret['weight']; + $val['status'] = 'warn'; + $val['comment'] = "Create entry MX with ".$ret['sub']." go to ".$ret['target']." with ttl ".$ret['ttl']." and weight 5 (initial weight was ".$ret['weight'].")"; $val['entry_new']['type'] = 'MX'; $val['entry_new']['sub'] = $ret['sub']; $val['entry_new']['value'] = $ret['target'];