Page 1 of 1

cannot post tags?

Posted: Thu Nov 04, 2004 10:10 am
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?

Posted: Thu Nov 04, 2004 1:15 pm
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.

Posted: Thu Nov 04, 2004 1:56 pm
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?

Posted: Thu Nov 04, 2004 2:14 pm
by Weirdan