Skip to content

Commit a77ad1e

Browse files
committed
Only disable phar stream wrapper for non-cli SAPIs
1 parent 7d9c977 commit a77ad1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

autoload.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
* @version //autogentag//
88
* @package kernel
99
*/
10-
1110
// Disable the PHAR stream wrapper as it is insecure
12-
if (in_array('phar', stream_get_wrappers())) {
11+
if (PHP_SAPI !== 'cli' && in_array('phar', stream_get_wrappers())) {
1312
stream_wrapper_unregister('phar');
1413
}
1514

0 commit comments

Comments
 (0)