[slbackup-commit] CVS update: slbackup-php/src index.php

finnarne-guest at alioth.debian.org finnarne-guest at alioth.debian.org
Mon Apr 16 22:16:10 UTC 2007


  User: finnarne-guest
  Date: 07/04/16 22:16:10

  Modified:    src      index.php
  Log:
  Moved xorstring from form into cookie, to allow the use of get, and not only post
  
  Revision  Changes    Path
  1.18      +5 -2      slbackup-php/src/index.php
  
  Index: index.php
  ===================================================================
  RCS file: /cvsroot/slbackup/slbackup-php/src/index.php,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- index.php	16 Apr 2007 21:15:10 -0000	1.17
  +++ index.php	16 Apr 2007 22:16:10 -0000	1.18
  @@ -276,7 +276,7 @@
   
   
   # Fetch arguments passed as the script is executed
  -foreach ($_POST as $key => $value) {
  +foreach ($_REQUEST as $key => $value) {
       switch ($key) {
           case "Passwd": 
               $passwd = $value ; 
  @@ -284,6 +284,8 @@
               break ; 
           case "xorstring": 
               $xorstring = $value ; 
  +            if (empty ($value))
  +                break ; 
               $encrypt = $_SESSION["encrypt"] ; 
               $passwd = xorstring ($encrypt, $xorstring) ; 
               break ; 
  @@ -316,6 +318,7 @@
       unset ($passwd) ; 
       unset ($xorstring) ; 
       $_SESSION['encrypt'] = "" ; 
  +    setcookie ('xorstring', '') ; 
   }
   
   if (isset ($passwd))
  @@ -334,7 +337,7 @@
       $xorstring = xorstring ($encrypt, $passwd) ; 
   }
   
  -$smarty->assign ('xorstring', $xorstring) ; 
  +setcookie ('xorstring', $xorstring) ; 
   
   $scheduler = readcron ($passwd) ; 
   
  
  
  



More information about the slbackup-commit mailing list