bug:2402
vsprintf() [function.vsprintf ]: Too few arguments => fix with that code but tests in various environements are needed git-svn-id: http://piwigo.org/svn/trunk@11951 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
08318d1b80
commit
984dbc729f
1 changed files with 1 additions and 5 deletions
|
@ -99,12 +99,8 @@ function get_remote_addr_session_hash()
|
||||||
: '.'
|
: '.'
|
||||||
;
|
;
|
||||||
|
|
||||||
return vsprintf(
|
return substr(md5($_SERVER['REMOTE_ADDR']), 0, 4);
|
||||||
"%02X%02X",
|
|
||||||
explode($separator,$_SERVER['REMOTE_ADDR'])
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this function returns
|
* this function returns
|
||||||
* a string corresponding to the value of the variable save in the session
|
* a string corresponding to the value of the variable save in the session
|
||||||
|
|
Loading…
Add table
Reference in a new issue