Skip to content

Node.js based forum software built for the modern web

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

Julian Lamda47f5675cc4
diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js
index 656364b3a1..c6dfaaaaa6 100644
--- a/public/src/client/topic/posts.js
+++ b/public/src/client/topic/posts.js
@@ -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');
}