MyBB Community Forums

Full Version: Potential Security Issue Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Was changing the Navbar on the forums and i tried to save it but i got a potential security issue error. Not sure how to fix this as im not experienced with code. Can anyone help?
The code i tried to save is:
	<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
			<div class="menu">
				<ul>
					<li><a href="http://fallenskiesmc.x10.bz/Upload/portal.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />Home</a></li>
					<li><a href="http://fallenskiesmc.x10.bz/Upload"><alt="" title=""</a>Forums</li>
						<li><a href="http://fallenskiesstore.buycraft.net"><alt="" title="" />Store</a></li>
					<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang-
					>toplinks_memberlist}</a></li>
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
					<style>
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: shown;
    background-color: #333;
}

li {
    float: left;
}

li a, .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
    background-color: red;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
    display: block;
}
</style>
</head>
<body>

<ul>
  <li class="dropdown">
    <a href="javascript:void(0)" class="dropbtn">Staff Apps</a>
    <div class="dropdown-content">
      <a href="https://docs.google.com/forms/d/e/1FAIpQLSd4ygIc3ifdUU6u-HmgB_A4EmlAVoaeyNew1rAZaBTeJDtVFQ/viewform">Helper</a>
      <a href="https://docs.google.com/forms/d/e/1FAIpQLScd1fIWa2Td0yCIjxKSOfAY7IkuVP2WfGU_n7ZY-lpCagBPeg/viewform">Builder</a>
    </div>
  </li>
</ul>

				</ul>
			</div>
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			{$pending_joinrequests}
			<navigation>
			<br />
Try

	<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
			<div class="menu">
				<ul>
					<li><a href="http://fallenskiesmc.x10.bz/Upload/portal.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />Home</a></li>
					<li><a href="http://fallenskiesmc.x10.bz/Upload"><alt="" title="" />Forums</a></li>
<li><a href="http://fallenskiesstore.buycraft.net"><alt="" title="" />Store</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php">
	<img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />Memberlist</a></li>
					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
<ul>
  <li class="dropdown">
    <a href="javascript:void(0)" class="dropbtn">Staff Apps</a>
    <div class="dropdown-content">
      <a href="https://docs.google.com/forms/d/e/1FAIpQLSd4ygIc3ifdUU6u-HmgB_A4EmlAVoaeyNew1rAZaBTeJDtVFQ/viewform">Helper</a>
      <a href="https://docs.google.com/forms/d/e/1FAIpQLScd1fIWa2Td0yCIjxKSOfAY7IkuVP2WfGU_n7ZY-lpCagBPeg/viewform">Builder</a>
    </div>
  </li>
</ul>

				</ul>
			</div>
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			{$pending_joinrequests}
			<navigation>
			<br />

				
				
				
<style>
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: shown;
    background-color: #333;
}

li {
    float: left;
}

li a, .dropbtn {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
    background-color: red;
}

li.dropdown {
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
    display: block;
}
</style>
Thanks, That Worked.