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

v1.18.x
Julian Lam 9 years ago
parent 6c8a34ae50
commit da47f5675c

@ -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');
}

Loading…
Cancel
Save