Skip to content

Commit

Permalink
Merge branch 'master' of github.com:do-/eludia
Browse files Browse the repository at this point in the history
  • Loading branch information
jonny64 committed Aug 11, 2016
2 parents 47046f1 + 4b192ea commit 9617266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Eludia/Content/Validators.pm
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ sub vld_ogrn {
local $SIG {__DIE__} = 'DEFAULT';

$_REQUEST {$name} =~ /^\d+$/ or return "#$name#:$i18n->{ogrn_digits_fail}";
$_REQUEST {$name} =~ /^[12]/ or die "#$name#:$i18n->{ogrn_first_digit_fail}";
$_REQUEST {$name} =~ /^[125]/ or die "#$name#:$i18n->{ogrn_first_digit_fail}";

if (length $_REQUEST {$name} == 13) {
(substr ($_REQUEST {$name}, 0, 12) % 11) % 10 == substr ($_REQUEST {$name}, -1, 1) or return "#$name#:$i18n->{ogrn_checksum_fail}";
Expand Down

0 comments on commit 9617266

Please sign in to comment.