[geeklog-cvs] geeklog-1.3/public_html submit.php,1.61,1.62

dhaun at geeklog.net dhaun at geeklog.net
Mon Feb 2 14:45:04 EST 2004


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv23179

Modified Files:
	submit.php 
Log Message:
The 'type' parameter always comes in through $HTTP_GET_VARS - even in a POST request ...


Index: submit.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/submit.php,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** submit.php	2 Feb 2004 19:14:07 -0000	1.61
--- submit.php	2 Feb 2004 19:45:02 -0000	1.62
***************
*** 734,738 ****
  $display .= COM_siteHeader();
  
! if (isset ($HTTP_POST_VARS['mode']) || isset ($HTTP_POST_VARS['type'])) {
      $http_vars = $HTTP_POST_VARS;
  } else {
--- 734,741 ----
  $display .= COM_siteHeader();
  
! // 'type' always comes in as a GET variable
! $type = COM_applyFilter ($HTTP_GET_VARS['type']);
! 
! if (isset ($HTTP_POST_VARS['mode'])) {
      $http_vars = $HTTP_POST_VARS;
  } else {
***************
*** 741,745 ****
  
  $mode = COM_applyFilter ($http_vars['mode']);
- $type = COM_applyFilter ($http_vars['type']);
  
  if ($mode == $LANG12[8]) { // submit
--- 744,747 ----





More information about the geeklog-cvs mailing list