Skip to content

Node.js based forum software built for the modern web

#2153 prevent jquery from attempting to load images that don't exist

psychobunny606263ace4c9
diff --git a/public/src/forum/admin/footer.js b/public/src/forum/admin/footer.js
index 0ae85fee8f..18f55504d9 100644
--- a/public/src/forum/admin/footer.js
+++ b/public/src/forum/admin/footer.js
@@ -9,6 +9,7 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
acpIndex = data;
for (var file in acpIndex) {
if (acpIndex.hasOwnProperty(file)) {
+ acpIndex[file] = acpIndex[file].replace(/<img/g, '<none'); // can't think of a better solution, see #2153
acpIndex[file] = $('<div class="search-container">' + acpIndex[file] + '</div>');
acpIndex[file].find('ul.nav, script').remove();