Permalink
Browse files

[gtickets] gives salt to crypt()

  • Loading branch information...
nao-pon committed Apr 14, 2015
1 parent 92f6faa commit 24f394098f93e1ef15b543aefdd99448963265a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/modules/protector/class/gtickets.php
@@ -72,7 +72,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 24f3940

Please sign in to comment.