Defect #13597

Redmine.pm and dots in username

Added by Konrad Mattheis almost 9 years ago. Updated almost 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM extra
Target version:-
Resolution: Affected version:2.2.4

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/*([^/.]+)};

...

History

#1 Updated by Toshi MARUYAMA almost 9 years ago

  • Category changed from SCM to SCM extra

Also available in: Atom PDF