cannot post tags?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Czar
Forum Commoner
Posts: 58
Joined: Sun Dec 29, 2002 11:17 am

cannot post tags?

Post by Czar »

I installed WebServ on my w2k machine yesterday (apache2, php, MySQL). I have this problem with updating of database field, i suppose the problem has nothing to do with code, but it's here anyway.

Code: Select all

<?php
if ((isset($HTTP_POST_VARS["update"])) && ($HTTP_POST_VARS["update"] == "config")) {
  $updateSQL = sprintf("UPDATE config SET topic_count='$HTTP_POST_VARS[cnf_topiccount]', etusivu_txt='$HTTP_POST_VARS[cnf_etusivu_txt]'");
  mysql_select_db($database_telema_DB, $telema_DB);
  $Result1 = mysql_query($updateSQL, $telema_DB) or die(mysql_error());
  $GoTo = $link_modconfig;  
  header(sprintf("Location: %s", $GoTo));
}
?>
Updating works fine with plain text, but when i try to post HTML-tags to format my text appearance on page, the server throws me this error 403: Forbidden. Is there some setting in php.ini or httpd.conf, that prevents posting of tags?
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

i know there is an apache security module thats available that filters all input from the outside, and can be configured to do that type of stuff. if they set it to filter html, that might be your problem. i think this board might use actually use it because you cant post certain things, or the server throws an error.
Czar
Forum Commoner
Posts: 58
Joined: Sun Dec 29, 2002 11:17 am

Post by Czar »

I found this row from apache error log file:

mod_security: Access denied with code 403. Pattern match "<(.|\\n)+>" at POST_PAYLOAD [hostname "localhost"]

How can i disable that feature?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Post Reply