From 668b11b399a0a5773006babec42cccbd3bffd5d6 Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Thu, 3 Mar 2022 23:29:48 +0100 Subject: [PATCH] Typos --- doc/sources/admin/writingrulesand_headers.rst | 4 ++-- .../lib/Lemonldap/NG/Portal/2F/Engines/Default.pm | 4 ++-- lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/sources/admin/writingrulesand_headers.rst b/doc/sources/admin/writingrulesand_headers.rst index 6e750e52c..39175cb8f 100644 --- a/doc/sources/admin/writingrulesand_headers.rst +++ b/doc/sources/admin/writingrulesand_headers.rst @@ -1,8 +1,8 @@ Writing rules and headers ========================= -LL::NG manages applications by their hostname (Apache's -Virtual Hosts or Nginx Block Servers). Rules are used for protecting applications, +LL::NG manages applications by their hostname (Apache Virtual Hosts or +Nginx Block Servers). Rules are used for protecting applications, and HTTP headers are appended to each request for sending datas to protected applications (for logs, profiles,...). diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Engines/Default.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Engines/Default.pm index f046bb0db..e19a9e060 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Engines/Default.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/2F/Engines/Default.pm @@ -515,12 +515,12 @@ sub _displayRegister { } : undef; unless ($_2fDevices) { - $self->logger->debug("No 2F Device found"); + $self->logger->debug("None 2F device found"); $_2fDevices = []; } } else { - $self->userLogger->warn("Do not diplay 2F Devices!"); + $self->userLogger->warn("Do not display 2F devices!"); } # Parse second factors to display delete button if allowed and upgrade button diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm index 8bdb5f088..372e2fe41 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Init.pm @@ -625,7 +625,7 @@ sub buildRule { my $compiledRule = $self->HANDLER->buildSub( $self->HANDLER->substitute($rule) ); unless ($compiledRule) { - my $error = $self->HANDLER->tsv->{jail}->error || '???'; + my $error = $self->HANDLER->tsv->{jail}->error || 'Unable to compile rule'; $self->logger->error( "Bad" . $ruleDesc . "rule: " . $error ); } return $compiledRule,;