]> Sergey Matveev's repositories - public-inbox.git/commitdiff
wwwtext: don't blindly quote "git clone" destination
authorEric Wong <e@80x24.org>
Wed, 9 Sep 2020 21:23:25 +0000 (21:23 +0000)
committerEric Wong <e@80x24.org>
Thu, 10 Sep 2020 19:45:18 +0000 (19:45 +0000)
Save screen space and light up fewer pixels to reduce visual noise.

lib/PublicInbox/WwwText.pm

index 81c0ee4abfc889fbb9939498296e4d6cff4118a6..87dc0751fb6b13fb97611cc3314f836757ec7115 100644 (file)
@@ -198,11 +198,11 @@ EOF
                        if ($urls && scalar(@$urls)) {
                                $$txt .= "\t; ";
                                $$txt .= join(" ||\n\t;\t", map {;
-                                       my $cpath = $path;
+                                       my $dst = $path;
                                        if ($path !~ m![a-z0-9_/\.\-]!i) {
-                                               $cpath = dq_escape($cpath);
+                                               $dst = '"'.dq_escape($dst).'"';
                                        }
-                                       qq(git clone $_ "$cpath");
+                                       qq(git clone $_ $dst);
                                } @$urls);
                                $$txt .= "\n";
                        }