Skip to content

Commit e840236

Browse files
committed
add test savepath on travis
1 parent e13bedf commit e840236

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/Encryption.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ public function getAvailableMethods(): array
8686
$methods = array_merge($ciphers, $cipherAliases);
8787

8888
$methods = array_filter($methods, function ($c) {
89-
return !in_array($c, ['AES-128-CBC-HMAC-SHA1', 'AES-256-CBC-HMAC-SHA1'], true);
89+
$forbiddenMethods = ['AES-128-CBC-HMAC-SHA1', 'AES-256-CBC-HMAC-SHA1',
90+
'aes-128-cbc-hmac-sha1', 'aes-256-cbc-hmac-sha1'];
91+
92+
return !in_array($c, $forbiddenMethods, true);
9093
});
9194

9295
return $methods;

‎src/File.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class File implements SessionHandlerInterface
2121
*/
2222
public function open($savePath, $sessionName): bool
2323
{
24+
var_dump('savePath ' . $savePath);
2425
$this->savePath = $savePath;
2526

2627
if (!is_dir($this->savePath)) {

0 commit comments

Comments
 (0)