summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-09-23 02:51:17 -0600
committerGitHub <noreply@github.com>2022-09-23 02:51:17 -0600
commitbf2b9597229ac079fd2122aee4ae841e67db35ec (patch)
tree54547a37c236cb4d8172e25f1423eb327f4b70e7 /lib
parent542f12d86e0d5a0726fd3a541ce2b19cc448fffd (diff)
resolves #4357 change internal uriish? to only detect a URI pattern at start of string (GHSL-2022-084) (PR #4358)
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/rx.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/rx.rb b/lib/asciidoctor/rx.rb
index 5e73b13f..c212a871 100644
--- a/lib/asciidoctor/rx.rb
+++ b/lib/asciidoctor/rx.rb
@@ -717,7 +717,7 @@ module Asciidoctor
#
# not c:/sample.adoc or c:\sample.adoc
#
- UriSniffRx = %r(^#{CG_ALPHA}[#{CC_ALNUM}.+-]+:/{0,2})
+ UriSniffRx = %r(\A#{CG_ALPHA}[#{CC_ALNUM}.+-]+:/{0,2})
# Detects XML tags
XmlSanitizeRx = /<[^>]+>/