summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-24 20:59:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-24 20:59:13 +0000
commit928ac472466b4c6842c0149dbbc43534c92de4f5 (patch)
tree5f4b198edb2183c56f36c4370199d4efb4be2de5 /extra
parent24e2f4641922af95c7ac1f7db80a0b47a1c79e25 (diff)
Redmine.pm errors when cloning public project (#16948).
git-svn-id: http://svn.redmine.org/redmine/trunk@14883 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra')
-rw-r--r--extra/svn/Redmine.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/extra/svn/Redmine.pm b/extra/svn/Redmine.pm
index 1ec057645..8b7fe158f 100644
--- a/extra/svn/Redmine.pm
+++ b/extra/svn/Redmine.pm
@@ -332,8 +332,10 @@ sub access_handler {
my $project_id = get_project_identifier($r);
- $r->set_handlers(PerlAuthenHandler => [\&OK])
- if is_public_project($project_id, $r) && anonymous_allowed_to_browse_repository($project_id, $r);
+ if (is_public_project($project_id, $r) && anonymous_allowed_to_browse_repository($project_id, $r)) {
+ $r->user("");
+ $r->set_handlers(PerlAuthenHandler => [\&OK]);
+ }
return OK
}