Skip to content
Snippets Groups Projects
Commit acfc421b authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix regex error in cid: matching

parent e8b803ac
No related branches found
No related tags found
No related merge requests found
......@@ -383,7 +383,7 @@ class Format {
function viewableImages($html, $script='image.php') {
return preg_replace_callback('/"cid:([\w.-_]{32})"/',
return preg_replace_callback('/"cid:([\w._-]{32})"/',
function($match) use ($script) {
$hash = $match[1];
if (!($file = AttachmentFile::lookup($hash)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment