html tags not allowed :(

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   html tags not allowed :(
Kunio
CZ Newbie
Kunio has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Dec 04, 2003
0.00 posts per day
Posts: 26
Points: 1,118
   
I've made an upgrade from 6.9 to 7.0. When i want to add or edit some article in Sections or Contents module, message shows: The html tags you attempted to use are not allowed . Where is the problem? Where do i have to put these tags?



Back to top Reply with quote
#2   
Staffie
CZ Revered Member
 Codezwiz Site Donator
uk.gif
Occupation: Investigation Officer
Age: 39
Gender: Male
Website:
Status: Offline
Joined: May 27, 2003
0.19 posts per day
Posts: 1454
Points: 401,085
   
Which type of html tags are you using?? sometimes you will find that only the very basic tags are allowed.

one wrong type of tag can void the whole article.




_________________
Back to top Reply with quote
#3   
Kunio
CZ Newbie
Kunio has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Dec 04, 2003
0.00 posts per day
Posts: 26
Points: 1,118
   
I delete this line in mainfile.php. Now it work! icon_biggrin.gif

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("\([^>]*\"?[^)]*\)", $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("<[^>]*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> ]");
    }
}


sorry for my english icon_smile.gif


Back to top Reply with quote
#4   re: html tags not allowed :(
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
While you may have solved the immediate problem, you may have just opened your site up to a major security problem. Those limitations are written in there to keep people from posting harmful scripts into your forums. I don't know much about how to hack websites or anything, but I'm sure you're doing more harm than good here. I'd put them back if I were you and figure out the real problem.

Kelly



Back to top Reply with quote
#5   
GRIM
CZ Active Member
 Codezwiz Site Donator
GRIM has been a member for over 20 year's 20 Year Member
usa.gif
Gender: Male
Status: Offline
Joined: Nov 24, 2003
0.02 posts per day
Posts: 143
Points: 15,818
   
I agree.....your doing more harm then good man...save yourself the time an the headache and find the real promblem




_________________
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum