diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-06-18 12:06:20 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-06-18 13:19:24 -0700 |
commit | 3fb5499dd638dae7156fba63ba5c1522bed5e46d (patch) | |
tree | 725d984325f9921101d7fbf8823992d322b93355 /app | |
parent | 961268446c551e43b43cd3dffaf0f3c6be4dfa6f (diff) | |
download | pandoc-3fb5499dd638dae7156fba63ba5c1522bed5e46d.tar.gz |
insertMediaBag: ensure we get sane mediaPath for URLs.
Long URLs cannot be treated as mediaPaths, but System.FilePath's
`isRelative` often returns True for them. So we add a check
for an absolute URL. We also ensure that extensions are derived
only from the path portion of URLs (previously a following query
was being included).
Closes #7391.
Diffstat (limited to 'app')
0 files changed, 0 insertions, 0 deletions