Skip to content

Commit

Permalink
check for consecutive dots in check_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
hannaeko committed May 2, 2022
1 parent a46a9fb commit 18dd0ae
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Zonemaster/Backend/Validator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ sub check_domain {
return N__ 'The domain name character(s) are not supported';
}

if ( $domain =~ m/\.\./i ) {
return N__ 'The domain name contains consecutive dots';
}

my %levels = Zonemaster::Engine::Logger::Entry::levels();
my @res;
@res = Zonemaster::Engine::Test::Basic->basic00( $domain );
Expand Down
Binary file added share/da.mo
Binary file not shown.
Binary file added share/es.mo
Binary file not shown.
Binary file added share/fi.mo
Binary file not shown.
Binary file added share/fr.mo
Binary file not shown.
7 changes: 7 additions & 0 deletions share/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ msgid ""
msgstr ""
"Project-Id-Version: 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
<<<<<<< HEAD
"POT-Creation-Date: 2022-04-28 15:58+0200\n"
=======
"POT-Creation-Date: 2022-05-02 14:21+0200\n"
>>>>>>> 225e1c1 (check for consecutive dots in check_domain)
"PO-Revision-Date: 2021-10-14 11:25+0200\n"
"Last-Translator: \n"
"Language-Team: Zonemaster project\n"
Expand Down Expand Up @@ -52,6 +56,9 @@ msgstr ""
msgid "The domain name character(s) are not supported"
msgstr "Les caractères du nom de domaine ne sont pas supportés"

msgid "The domain name contains consecutive dots"
msgstr "Le nom de domaine contient plusieurs points consécutifs"

msgid "The domain name or label is too long"
msgstr "Le nom de domaine ou les labels sont trop longs"

Expand Down
Binary file added share/nb.mo
Binary file not shown.
Binary file added share/sv.mo
Binary file not shown.

0 comments on commit 18dd0ae

Please sign in to comment.