Project

General

Profile

Actions

Defect #13597

open

Redmine.pm and dots in username

Added by Konrad Mattheis about 11 years ago. Updated about 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM extra
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

The Redmine.pm does not work with "." in the username, if you try to open
a repos with username included in the url like: https://firstname.lastname@redmine.org/git/project.git

This problems comes from the parsing of the "." in the projectname.

Unfortunately I have not many exper. with perl regex. Can anybody help me to give a hint how
to change the following code that it only searches for a "." behind a "@"

sub get_project_identifier {

...
$location =~ s/\.git$// if (defined $cfg->{RedmineGitSmartHttp} and $cfg->{RedmineGitSmartHttp});
my ($identifier) = $r->uri =~ m{$location/*([^/.]+)};

...
Actions #1

Updated by Toshi MARUYAMA about 11 years ago

  • Category changed from SCM to SCM extra
Actions

Also available in: Atom PDF