blob: b0c7a1bd735e27473e06fa4d5e67c513b6431a59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/**
* Script to check that the main .htaccess file doesn't include some automated
* changes done by Nextcloud.
*/
$htaccess = file_get_contents(__DIR__ . '/../.htaccess');
if (strpos($htaccess, 'DO NOT CHANGE ANYTHING') !== false) {
echo(".htaccess file has invalid changes!\n");
exit(1);
} else {
exit(0);
}
|