Commit 64e8b6e2 authored by Penny Leach's avatar Penny Leach
Browse files

Leap2a fix for inline images with resize parameters:



the regexp to replace them with their leap2a feed id was broken
Signed-off-by: default avatarPenny Leach <penny@mjollnir.org>
parent 44d19f6d
......@@ -930,7 +930,7 @@ class LeapExportOutputFilter {
$html = preg_replace_callback(
array(
'#<(a[^>]+)href="(' . preg_quote(get_config('wwwroot')) . ')?/?artefact/file/download\.php\?file=(\d+)(&amp;view=\d+)?"([^>]*)>#',
'#<(img[^>]+)src="(' . preg_quote(get_config('wwwroot')) . ')?/?artefact/file/download\.php\?file=(\d+)(&amp;view=\d+)?"([^>]*)>#',
'#<(img[^>]+)src="(' . preg_quote(get_config('wwwroot')) . ')?/?artefact/file/download\.php\?file=(\d+)([^"]*)?"([^>]*)>#',
),
array($this, 'replace_download_link'),
$html
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment