Commit cb10ec49 authored by Xavier Guimard's avatar Xavier Guimard

* Rules sorted in Handler (to prepare sorting with regexp comments)

* debian/control mistake
parent e55a4868
......@@ -42,12 +42,11 @@ Package: liblemonldap-ng-conf-perl
Architecture: all
Depends: ${misc:Depends}, libdbi-perl, debconf, libcache-cache-perl, libregexp-assemble-perl, libcrypt-rijndael-perl
Recommends: libsoap-lite-perl
Description: Lemonldap::NG administration interface part
Description: Lemonldap::NG common files
Lemonldap::NG is a complete Web-SSO system that can run with reverse-proxies
or directly on application Apache servers.
.
This package installs the configuration libraries used by other Lemonldap::NG
modules.
This package installs common files used by other Lemonldap::NG modules.
Package: liblemonldap-ng-manager-perl
Architecture: all
......
......@@ -471,7 +471,7 @@ sub locationRulesInit {
$locationCount = 0;
# Pre compilation : both regexp and conditions
foreach ( keys %{ $args->{locationRules} } ) {
foreach ( keys sort %{ $args->{locationRules} } ) {
if ( $_ eq 'default' ) {
$defaultCondition =
$class->conditionSub( $args->{locationRules}->{$_} );
......
......@@ -27,7 +27,7 @@ sub locationRulesInit {
my ( $class, $args ) = @_;
foreach my $vhost ( keys %{ $args->{locationRules} } ) {
$locationCount->{$vhost} = 0;
foreach ( keys %{ $args->{locationRules}->{$vhost} } ) {
foreach ( sort keys %{ $args->{locationRules}->{$vhost} } ) {
if ( $_ eq 'default' ) {
$defaultCondition->{$vhost} =
$class->conditionSub(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment