Skip to content

Commit 825f7b9

Browse files
SvenDowideitSvenDowideit
authored andcommitted
Item9593: add some feedback in run time too, in case the admin didn't notice the warnings in configure
git-svn-id: http://svn.foswiki.org/trunk@8834 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
1 parent bf987a7 commit 825f7b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/lib/Foswiki/Users/HtPasswdUser.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ sub new {
4141
$this->{error} = undef;
4242
if ( $Foswiki::cfg{Htpasswd}{Encoding} eq 'md5' ) {
4343
require Digest::MD5;
44+
if ($Foswiki::cfg{AuthRealm} =~ /\:/) {
45+
print STDERR "ERROR: the AuthRealm cannot contain a ':' (colon) as it corrumpts the password file\n";
46+
throw Error::Simple("ERROR: the AuthRealm cannot contain a ':' (colon) as it corrumpts the password file");
47+
}
4448
}
4549
elsif ( $Foswiki::cfg{Htpasswd}{Encoding} eq 'crypt' ) {
4650
}

0 commit comments

Comments
 (0)