Skip to content

Commit 14d5d43

Browse files
authored
Merge pull request #21 from iMattPro/updates
Update tests
2 parents 88953c6 + db1df9b commit 14d5d43

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

controller/admin_controller.php

-2
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,7 @@ protected function trim_name(string $string, int $start, int $length): string
310310
if (str_contains($string, '&') && preg_match('/&[#a-zA-Z0-9]+;/', $string))
311311
{
312312
$decoded = html_entity_decode($string, ENT_QUOTES | ENT_HTML5, 'UTF-8');
313-
314313
$trimmed = utf8_substr($decoded, $start, $length);
315-
316314
return htmlspecialchars($trimmed, ENT_QUOTES | ENT_HTML5, 'UTF-8');
317315
}
318316

tests/functional/acp_file_test.php

+6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ protected static function setup_extensions(): array
2828

2929
protected function setUp(): void
3030
{
31+
if (getenv('GITHUB_ACTIONS') !== 'true')
32+
{
33+
$this->markTestSkipped('This test is skipped on local test servers since they may not always work for uploading.');
34+
}
35+
3136
parent::setUp();
37+
3238
$this->path = __DIR__ . '/../fixtures/';
3339
$this->add_lang('posting');
3440
$this->add_lang_ext('phpbb/pwakit', ['acp_pwa', 'info_acp_pwa']);

0 commit comments

Comments
 (0)