[geeklog-cvs] Geeklog-1.x/plugins/staticpages services.inc.php, 1.6, 1.7

Dirk Haun dhaun at qs1489.pair.com
Thu Jan 3 11:23:03 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages
In directory qs1489.pair.com:/tmp/cvs-serv99897/plugins/staticpages

Modified Files:
	services.inc.php 
Log Message:
COM_sanitizeID happened too late


Index: services.inc.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/services.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** services.inc.php	29 Dec 2007 15:05:50 -0000	1.6
--- services.inc.php	3 Jan 2008 16:23:01 -0000	1.7
***************
*** 3,7 ****
  // Reminder: always indent with 4 spaces (no tabs). 
  // +---------------------------------------------------------------------------+
! // | Static Pages Plugin 1.4.4                                                 |
  // +---------------------------------------------------------------------------+
  // | services.inc.php                                                          |
--- 3,7 ----
  // Reminder: always indent with 4 spaces (no tabs). 
  // +---------------------------------------------------------------------------+
! // | Static Pages Plugin 1.5                                                   |
  // +---------------------------------------------------------------------------+
  // | services.inc.php                                                          |
***************
*** 9,13 ****
  // | This file implements the services provided by the 'Static Pages' plugin.  |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2007 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs       - tony AT tonybibbs DOT com                     |
--- 9,13 ----
  // | This file implements the services provided by the 'Static Pages' plugin.  |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2008 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs       - tony AT tonybibbs DOT com                     |
***************
*** 116,119 ****
--- 116,121 ----
      }
  
+     $args['sp_id'] = COM_sanitizeID($args['sp_id']);
+ 
      // Apply filters to the parameters passed by the webservice 
      if ($args['gl_svc']) {
***************
*** 242,247 ****
      }
  
-     $sp_id = COM_sanitizeID ($sp_id);
- 
      // Check for unique page ID
      $duplicate_id = false;
--- 244,247 ----
***************
*** 524,528 ****
              return PLG_RET_ERROR;
          }
- 
  
          if ($args['gl_svc']) {
--- 524,527 ----




More information about the geeklog-cvs mailing list