diff --git a/source/Styles/xb3/config/php.ini b/source/Styles/xb3/config/php.ini index 82c25b2..2aa4ffb 100755 --- a/source/Styles/xb3/config/php.ini +++ b/source/Styles/xb3/config/php.ini @@ -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. diff --git a/tests/php_session_entropy_test.sh b/tests/php_session_entropy_test.sh new file mode 100644 index 0000000..46f1a2a --- /dev/null +++ b/tests/php_session_entropy_test.sh @@ -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