MyBB Community Forums
[JavaScript] Weird 404 error in headerinclude - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [JavaScript] Weird 404 error in headerinclude (/thread-223590.html)



Weird 404 error in headerinclude - snakeoilos - 2019-06-24

In the headerinclude template, there are these two lines:

var spinner_image = "{$theme['imgdir']}/spinner.gif";
var spinner = "<img src='" + spinner_image +"' alt='' />";

I'm assuming spinner will have the spinner_image string appended to itself.

However in my 404 logs I have multiple errors with the URI: /forums/%22%20+%20spinner_image%20+%22. And that's literally

forums/ " + spinner_image +"
so i have changed my headerinclude template to:

var spinner_image = "{$theme['imgdir']}/spinner.gif";
var spinner = "<img src='{$theme['imgdir']}/spinner.gif' alt='' />";

This forum also has the same javascript code, can the admins here check the logs and see if they get similiar 404 errors?

Not entirely sure what this spinner var is supposed to do. Everything works AFAICT?