We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf987a7 commit 825f7b9Copy full SHA for 825f7b9
core/lib/Foswiki/Users/HtPasswdUser.pm
@@ -41,6 +41,10 @@ sub new {
41
$this->{error} = undef;
42
if ( $Foswiki::cfg{Htpasswd}{Encoding} eq 'md5' ) {
43
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
+ }
48
}
49
elsif ( $Foswiki::cfg{Htpasswd}{Encoding} eq 'crypt' ) {
50
0 commit comments