Skip to content

Commit 2ef89f3

Browse files
committed
Merge branch 'mm/mediawiki-author-fix'
* mm/mediawiki-author-fix: git-remote-mediawiki: don't include HTTP login/password in author
2 parents 3b6a5d2 + 9fb7950 commit 2ef89f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ $dumb_push = ($dumb_push eq "true");
109109

110110
my $wiki_name = $url;
111111
$wiki_name =~ s/[^\/]*:\/\///;
112+
# If URL is like http://user:[email protected]/, we clearly don't
113+
# want the password in $wiki_name. While we're there, also remove user
114+
# and '@' sign, to avoid author like MWUser@[email protected]
115+
$wiki_name =~ s/^.*@//;
112116

113117
# Commands parser
114118
my $entry;

0 commit comments

Comments
 (0)