aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2011-08-15 15:59:49 +0000
committerflop25 <flop25@piwigo.org>2011-08-15 15:59:49 +0000
commit984dbc729f621f4ba6bde8e2ade35207f6c1e1bd (patch)
tree0c1c14308a98fd03c8a08ef60fd13ae217ddcac7
parent08318d1b80ce95c43d5daff16fb8f4eab608705c (diff)
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
Diffstat (limited to '')
-rw-r--r--include/functions_session.inc.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php
index f0804efed..6d0f12a9b 100644
--- a/include/functions_session.inc.php
+++ b/include/functions_session.inc.php
@@ -99,12 +99,8 @@ function get_remote_addr_session_hash()
: '.'
;
- return vsprintf(
- "%02X%02X",
- explode($separator,$_SERVER['REMOTE_ADDR'])
- );
+ return substr(md5($_SERVER['REMOTE_ADDR']), 0, 4);
}
-
/**
* this function returns
* a string corresponding to the value of the variable save in the session