diff --git a/bin/schedule_captcha.pl b/bin/schedule_captcha.pl index eaf0a790..48df88f0 100644 --- a/bin/schedule_captcha.pl +++ b/bin/schedule_captcha.pl @@ -113,7 +113,7 @@ eval { out("Deleting captcha [".$captcha->id."]"); my $prefix = substr($captcha->guid, 0,2); - my $file = "/data/captcha/$prefix/".$captcha->guid.".png"; + my $file = "/home/lacuna/server/public/captcha/$prefix/".$captcha->guid.".png"; out("Deleting file [$file]"); unlink($file); $captcha->delete; diff --git a/lib/Lacuna/CaptchaFactory.pm b/lib/Lacuna/CaptchaFactory.pm index 35856fa3..9ab82a6d 100644 --- a/lib/Lacuna/CaptchaFactory.pm +++ b/lib/Lacuna/CaptchaFactory.pm @@ -256,7 +256,7 @@ sub construct { compress=> 1, ); - my $dir = '/home/lacuna/server/captcha/'; + my $dir = '/home/lacuna/server/public/captcha/'; open my $file, '>', $dir.'/'.$self->guid.'.png' or die "Can't write to $dir/".$self->guid.".png: $!"; print {$file} $image;