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

oops: Make files viewable with _ in key

parent d0dbcf42
No related branches found
No related tags found
No related merge requests found
......@@ -385,7 +385,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