Skip to content

Commit

Permalink
Make script PHP7 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
pabzm committed Dec 10, 2024
1 parent 6ccd7b4 commit 809c1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/test-remote-access.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function test_dir($dir_name, $base_url)
$data = get_http_data($base_url);
// Check if this URL actually serves a Roundcubemail. Note: This check must work
// for very old versions of Roundcubemail, too!
if (!str_contains($data['body'], 'program/js/app.')) {
if (!strpos($data['body'], 'program/js/app.') !== false) {
error('⚠️ Error: The given URL is not serving Roundcubemail!');
}

Expand Down

0 comments on commit 809c1ee

Please sign in to comment.