From e2cc056e080575feea403f0181c11780bb203528 Mon Sep 17 00:00:00 2001 From: Natalie Rose Date: Wed, 9 Sep 2026 14:12:12 +1000 Subject: [PATCH] Fix captcha path --- bin/schedule_captcha.pl | 2 +- lib/Lacuna/CaptchaFactory.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.51.2