Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/Styles/xb3/config/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1596,15 +1596,15 @@ session.referer_check =

; How many bytes to read from the file.
; http://php.net/session.entropy-length
session.entropy_length = 0
;session.entropy_length = 0

; Specified here to create the session id.
; http://php.net/session.entropy-file
;session.entropy_file = /dev/urandom
session.entropy_file =
session.entropy_file = /dev/urandom
;session.entropy_file =

; http://php.net/session.entropy-length
;session.entropy_length = 16
session.entropy_length = 16

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
Expand Down
13 changes: 13 additions & 0 deletions tests/php_session_entropy_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
if sed -n '1603p' source/Styles/xb3/config/php.ini | grep -q "session.entropy_file.*=.*dev/urandom"; then
echo "PASS: session.entropy_file set to /dev/urandom"
else
echo "FAIL: session.entropy_file not set to /dev/urandom"
exit 1
fi
if sed -n '1607p' source/Styles/xb3/config/php.ini | grep -q "session.entropy_length.*=.*16"; then
echo "PASS: session.entropy_length set to 16"
else
echo "FAIL: session.entropy_length not set to 16"
exit 1
fi
Loading