[geeklog-cvs] Geeklog-1.x/public_html submit.php,1.119,1.120

Dirk Haun dhaun at qs1489.pair.com
Sat Dec 29 10:47:44 EST 2007


Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv42349/public_html

Modified Files:
	submit.php 
Log Message:
Check for $_POST['mode'] being set before using it


Index: submit.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/submit.php,v
retrieving revision 1.119
retrieving revision 1.120
diff -C2 -d -r1.119 -r1.120
*** submit.php	25 Nov 2007 06:55:07 -0000	1.119
--- submit.php	29 Dec 2007 15:47:42 -0000	1.120
***************
*** 3,7 ****
  /* Reminder: always indent with 4 spaces (no tabs). */
  // +---------------------------------------------------------------------------+
! // | Geeklog 1.4                                                               |
  // +---------------------------------------------------------------------------+
  // | submit.php                                                                |
--- 3,7 ----
  /* Reminder: always indent with 4 spaces (no tabs). */
  // +---------------------------------------------------------------------------+
! // | Geeklog 1.5                                                               |
  // +---------------------------------------------------------------------------+
  // | submit.php                                                                |
***************
*** 9,13 ****
  // | Let users submit stories and plugin stuff.                                |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2006 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
--- 9,13 ----
  // | Let users submit stories and plugin stuff.                                |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2007 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
***************
*** 206,210 ****
      $storyform->set_var('story_date', $story->EditElements('unixdate'));
  
!     if (($_CONF['skip_preview'] == 1) || ($_POST['mode'] == $LANG12[32])) {
          PLG_templateSetVars ('story', $storyform);
          $storyform->set_var('save_button', '<input name="mode" type="submit" value="' . $LANG12[8] . '"' . XHTML . '>');
--- 206,211 ----
      $storyform->set_var('story_date', $story->EditElements('unixdate'));
  
!     if (($_CONF['skip_preview'] == 1) ||
!             (isset($_POST['mode']) && ($_POST['mode'] == $LANG12[32]))) {
          PLG_templateSetVars ('story', $storyform);
          $storyform->set_var('save_button', '<input name="mode" type="submit" value="' . $LANG12[8] . '"' . XHTML . '>');




More information about the geeklog-cvs mailing list