From 53b4a581434ff67c2efec88ab78225bf093c78fb Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Tue, 16 Mar 2021 14:54:38 -0700 Subject: [PATCH] Markdown.pl: add missing space to implied attributes When sanitizing an attribute with an implied value such as "compact" or "checked", add the required space at the end to avoid mashing up against any other attribute that might be present. For example,
    now becomes the correct:
      rather than the previously incorrect:
        Signed-off-by: Kyle J. McKay --- Markdown.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Markdown.pl b/Markdown.pl index 274836b..ad81d49 100755 --- a/Markdown.pl +++ b/Markdown.pl @@ -3797,7 +3797,7 @@ sub _SanitizeAtt { return "" unless $univatt{$att} || $_[2]->{$att}; return "" if $_[3]->{$att}; # no repeats $_[3]->{$att} = 1; - $impatt{$att} and return $att."=".'"'.$att.'"'; + $impatt{$att} and return $att."=".'"'.$att.'" '; (($_[4] eq "a" && $att eq "href") || ($_[4] eq "img" && $att eq "src")) && $_[1] =~ /^\s*[\047\042]\s*javascript:/io and do {