Skip to content

Commit c506cb1

Browse files
committed
Revert composer.json changes, CS fixes
1 parent a387a46 commit c506cb1

File tree

2 files changed

+15
-25
lines changed

2 files changed

+15
-25
lines changed

composer.json

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,28 @@
33
"description": "The Roundcube Webmail suite",
44
"license": "GPL-3.0-or-later",
55
"require": {
6-
"php": ">=7.3.0 <=8.5",
7-
"pear/pear-core-minimal": "^1.10",
8-
"pear/auth_sasl": "~1.1.0",
9-
"pear/mail_mime": "~1.10.12",
10-
"pear/net_smtp": "~1.10.0",
11-
"pear/crypt_gpg": "*",
12-
"pear/net_ldap2": "~2.2.0",
13-
"pear/net_sieve": "*",
14-
"roundcube/plugin-installer": "^0.3",
15-
"masterminds/html5": "~2.8.0",
16-
"firebase/php-jwt": "~5.0.0",
17-
"pear/http_request2": "~2.5.0",
6+
"php": ">=7.3 <8.5",
187
"bacon/bacon-qr-code": "^2.0.8 || ^3.0.0",
198
"guzzlehttp/guzzle": "^7.9.2",
209
"guzzlehttp/promises": "^2.0",
21-
"sabre/vobject": "~4.5.1",
22-
"roundcube/rtf-html-php": "~2.1",
23-
"kolab/net_ldap3": "~1.1.5",
24-
"endroid/qr-code": "~1.6.5",
25-
"spomky-labs/otphp": "~10.0.3"
10+
"masterminds/html5": "~2.8.0 || ~2.9.0",
11+
"pear/auth_sasl": "~1.1.0 || ~1.2.0",
12+
"pear/crypt_gpg": "~1.6.3",
13+
"pear/mail_mime": "~1.10.11",
14+
"pear/net_sieve": "~1.4.7",
15+
"pear/net_smtp": "~1.12.0",
16+
"pear/pear-core-minimal": "~1.10.1",
17+
"roundcube/plugin-installer": "~0.3.5",
18+
"roundcube/rtf-html-php": "^2.1"
2619
},
2720
"require-dev": {
28-
"laravel/dusk": "^7.9",
2921
"ergebnis/composer-normalize": "^2.13",
3022
"ergebnis/phpunit-slow-test-detector": "^2.11",
3123
"friendsofphp/php-cs-fixer": "^3.0",
3224
"phpstan/extension-installer": "^1.1",
3325
"phpstan/phpstan": "^1.2",
34-
"phpstan/phpstan-deprecation-rules": "^1.0",
35-
"phpunit/phpunit": "^9.6.20",
26+
"phpstan/phpstan-deprecation-rules": "^1.2",
27+
"phpunit/phpunit": "^9.6.20 || ^10.0 || ^11.0",
3628
"roundcube/acl": "*",
3729
"roundcube/additional_message_headers": "*",
3830
"roundcube/archive": "*",

public_html/static.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666

6767
serveStaticFile($path);
6868

69-
7069
/**
7170
* Validate that the file exists and can be served
7271
*
@@ -135,7 +134,7 @@ function serveStaticFile($path): void
135134
}
136135

137136
$size = filesize($path);
138-
$fp = fopen($path, 'rb');
137+
$fp = fopen($path, 'r');
139138
$range = [0, $size - 1];
140139

141140
if (isset($_SERVER['HTTP_RANGE'])) {
@@ -159,8 +158,7 @@ function serveStaticFile($path): void
159158
if ($range[0] >= 0 && ($range[1] <= $size - 1) && $range[0] <= $range[1]) {
160159
header('HTTP/1.1 206 Partial Content', true, 206);
161160
header('Content-Range: bytes ' . sprintf('%u-%u/%u', $range[0], $range[1], $size));
162-
}
163-
else {
161+
} else {
164162
header('HTTP/1.1 416 Requested Range Not Satisfiable', true, 416);
165163
header('Content-Range: bytes */' . $size);
166164
return;
@@ -180,7 +178,7 @@ function serveStaticFile($path): void
180178
];
181179

182180
foreach ($headers as $k => $v) {
183-
header("$k: $v", true);
181+
header("{$k}: {$v}", true);
184182
}
185183

186184
if ($range[0] > 0) {

0 commit comments

Comments
 (0)