Commits

Anonymous committed 2ef89f3 Merge

Merge branch 'mm/mediawiki-author-fix'

* mm/mediawiki-author-fix:
git-remote-mediawiki: don't include HTTP login/password in author

Comments (0)

Files changed (1)

contrib/mw-to-git/git-remote-mediawiki

 
 my $wiki_name = $url;
 $wiki_name =~ s/[^\/]*:\/\///;
+# If URL is like http://user:password@example.com/, we clearly don't
+# want the password in $wiki_name. While we're there, also remove user
+# and '@' sign, to avoid author like MWUser@HTTPUser@host.com
+$wiki_name =~ s/^.*@//;
 
 # Commands parser
 my $entry;