MyBB Community Forums

Full Version: potential security issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, I've recently added 1 line of js code:

$(function(){$('.sceditor-container iframe').contents().find('html *').css('color', '#8F8F8F').css('font-family','"Lato",sans-serif');});

Now mybb is giving me a potential security issue.

Quote:A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.

I have no idea why it would give me this issue, can anybody help? Thanks.
Try adding spaces between the function's curly brackets and its contents, i.e.:
$(function(){ $('.sceditor-container iframe').contents().find('html *').css('color', '#8F8F8F').css('font-family','"Lato",sans-serif'); });
The template system's security check can be a bit oversensitive and treat the code as PHP.