In previous nuke sites, I have used html to format a message and insert images. I finished installing the this distro and find that i get this message:
Quote:
The html tags you attempted to use are not allowed
when I attempt to insert the following html
Code:
<table border="0" cellpadding="2" style="border-collapse: collapse" width="100%" >
<tr>
<td width="24%" >
<img border="0" src="DSCN0396.JPG" width="300" height="225"></td>
<td width="76%">
<p align="left" style="margin-left: 20; margin-right: 20; text-indent:10">
The Fritz Family Network is a website devoted to the Fritz family,
grandparents, parents and children! The various features of this website are
built around sharing news, conversation, pictures, recipes, important dates,
etc. If you like what you see here, please contribute as much as you
can to help building our website by adding whatever meets your fancy.
<p align="left" style="margin-left: 20; margin-right: 20; text-indent:10">
Since this is a new website, we invite you to test all of the features and
report any difficulties you may have in navigating or adding to the Fritz
Family Network<p align="left" style="margin-left: 20; margin-right: 20; text-indent:10">
Since this is a private, secure website, you will need to<a style="color: #FF0000; text-decoration: none" href="http://alaskandog.com/fritz/modules.php?name=Your_Account&op=new_user">
create an account here </a>and follow the instructions that are provided to
you. Enjoy your stay and come back soon!<br>
</tr>
</table>
Joined: Aug 27, 2002 Posts: 15024 Location: Kansas
Posted:
Wed Aug 04, 2004 4:25 am
mainfile.php has always disallowed certain html tags. I have not altered that. Here is the code as FB released it
Code:
foreach ($_GET as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
foreach ($HTTP_GET_VARS as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||
(eregi("\"", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
If your html is using any of these tags then Nuke is rejecting it. You can override this but buyer beware
Joined: Mar 06, 2004 Posts: 1140 Location: Manchester, NH USA
Posted:
Mon Aug 23, 2004 1:36 am
Comment out the following code in your mainfile.php
In Some Distributions the code looks like this:
Code:
foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
In others, it looks like this:
Code:
foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
In either case, comment all that out, make your webpage changes, then make it the way it was originally again by uncommenting it out.
I have tried to paste in some articles into the "submit news" page.
The preview shows the tables I had but when I go in as admin to approve the news submitted, the module has stripped the html <table> and <br> tags from the submission making it unreadable.
Is there a code hack that allows me to enter tables and use the <br> tags out there?
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum