@@ -5,7 +5,7 @@ |
||
5 | 5 | $port = ($_SERVER['SERVER_PORT'] ?? false) === 443; |
6 | 6 | $https = ($_SERVER['HTTPS'] ?? false) === 'on'; |
7 | 7 | |
8 | -define('SITE', (($proto or $port or $https) ? 'https': 'http') . '://' . $_SERVER['SERVER_NAME']); |
|
8 | +define('SITE', (($proto or $port or $https) ? 'https' : 'http') . '://' . $_SERVER['SERVER_NAME']); |
|
9 | 9 | |
10 | 10 | session_start(); |
11 | 11 |
@@ -24,9 +24,9 @@ |
||
24 | 24 | // function by Rakesh Sankar |
25 | 25 | |
26 | 26 | $search = array( |
27 | - '/\>[^\S ]+/s', // strip whitespaces after tags, except space |
|
28 | - '/[^\S ]+\</s', // strip whitespaces before tags, except space |
|
29 | - '/(\s)+/s', // shorten multiple whitespace sequences |
|
27 | + '/\>[^\S ]+/s', // strip whitespaces after tags, except space |
|
28 | + '/[^\S ]+\</s', // strip whitespaces before tags, except space |
|
29 | + '/(\s)+/s', // shorten multiple whitespace sequences |
|
30 | 30 | '/<!--(.|\s)*?-->/' // Remove HTML comments |
31 | 31 | ); |
32 | 32 |