From 5892ad8721096d04ba33ef95956ed88d2c559fd1 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Tue, 13 Feb 2007 22:46:17 +0000 Subject: [PATCH] fix: The requested URL /uploads_macro was not found on this server --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 9fa6512b4..15aad6b50 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -23,6 +23,7 @@ around 40% in the process. - fix: Spectre needs to be restarted every day - Added a basic status interface to spectre, for troubleshooting. + - fix: The requested URL /uploads_macro was not found on this server - fix: lack of testing for valid object creation - fix: No mention of intermediate upgrade step in gotcha's - fix: A newly released version of Html::Template fixes a bug with global diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm index 76995df25..dcc2ca75d 100644 --- a/lib/WebGUI.pm +++ b/lib/WebGUI.pm @@ -57,6 +57,7 @@ sub handler { return Apache2::Const::DECLINED if ($r->uri =~ m/^$url/); } my $uploads = $config->get("uploadsURL"); + $uploads .= "/" unless ($uploads =~ m{/$}); if ($r->uri =~ m!^$uploads/dictionaries!) { # Do not allow web-access to personal dictionaries. $r->push_handlers(PerlAccessHandler => sub { return 401 } );