Permalink
Browse files

[altsys] gives salt to crypt()

  • Loading branch information...
nao-pon committed Apr 14, 2015
1 parent 6a4e1ca commit 4ac89d9bbe27e763904c55a091053189686ec083
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/libs/altsys/include/gtickets.php
@@ -74,7 +74,7 @@ function issue( $salt = '' , $timeout = 1800 , $area = '' )
// create a token
list( $usec , $sec ) = explode( " " , microtime() ) ;
$appendix_salt = empty( $_SERVER['PATH'] ) ? XOOPS_DB_NAME : $_SERVER['PATH'] ;
$token = crypt( $salt . $usec . $appendix_salt . $sec ) ;
$token = crypt( $salt . $usec . $appendix_salt . $sec , XOOPS_DB_PREFIX ) ;
$this->_latest_token = $token ;
if( empty( $_SESSION['XOOPS_G_STUBS'] ) ) $_SESSION['XOOPS_G_STUBS'] = array() ;

0 comments on commit 4ac89d9

Please sign in to comment.