don't wrap images in links if the link is blank, fixes #4976

This commit is contained in:
Julian Lam
2016-08-25 13:00:59 -04:00
parent 6c8a34ae50
commit da47f5675c

View File

@@ -335,6 +335,10 @@ define('forum/topic/posts', [
src = $this.attr('src'),
suffixRegex = /-resized(\.[\w]+)?$/;
if (src === 'about:blank') {
return;
}
if (utils.isRelativeUrl(src) && suffixRegex.test(src)) {
src = src.replace(suffixRegex, '$1');
}