Fix a dummy bug that breaks two test

This commit is contained in:
Sandro Cazzaniga 2012-07-18 15:26:48 +00:00
parent ef2198c4a5
commit 6f2a798b0e

View File

@ -767,6 +767,7 @@ sub initCaptcha {
opendir(OUTPUT, $self->{captcha_output}) or $self->lmLog("Can't open captcha output dir", "error");
opendir(DATA, $self->{captcha_data}) or $self->lmLog("Can't open captcha data dir", "error");
foreach(readdir(OUTPUT)) {
next if ( $_ eq ".." or $_ eq "." );
system("rm -f $_ &>/dev/null")
or $self->lmLog("Can't clean captcha output dir!", "warn");
}