File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ function onSubmit() {
128128 $ this ->dataRecord ["serial " ] = $ app ->validate_dns ->increase_serial ($ soa ["serial " ]);
129129
130130 //* Check if soa, ns and mbox have a dot at the end
131- if (substr ($ this ->dataRecord ["origin " ],-1 ,1 ) != '. ' ) $ this ->dataRecord ["origin " ] .= '. ' ;
132- if (substr ($ this ->dataRecord ["ns " ],-1 ,1 ) != '. ' ) $ this ->dataRecord ["ns " ] .= '. ' ;
133- if (substr ($ this ->dataRecord ["mbox " ],-1 ,1 ) != '. ' ) $ this ->dataRecord ["mbox " ] .= '. ' ;
131+ if (strlen ( $ this -> dataRecord [ " origin " ]) > 0 && substr ($ this ->dataRecord ["origin " ],-1 ,1 ) != '. ' ) $ this ->dataRecord ["origin " ] .= '. ' ;
132+ if (strlen ( $ this -> dataRecord [ " ns " ]) > 0 && substr ($ this ->dataRecord ["ns " ],-1 ,1 ) != '. ' ) $ this ->dataRecord ["ns " ] .= '. ' ;
133+ if (strlen ( $ this -> dataRecord [ " mbox " ]) > 0 && substr ($ this ->dataRecord ["mbox " ],-1 ,1 ) != '. ' ) $ this ->dataRecord ["mbox " ] .= '. ' ;
134134
135135 //* Replace @ in mbox
136136 if (stristr ($ this ->dataRecord ["mbox " ],'@ ' )) {
You can’t perform that action at this time.
0 commit comments