mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Draftcode Microsoft restrictions #1645
This commit is contained in:
parent
60abc83ff1
commit
dcfe7d3f2d
2 changed files with 15 additions and 0 deletions
|
|
@ -1,7 +1,16 @@
|
||||||
|
#<FilesMatch "index\.php">
|
||||||
|
# allow from all
|
||||||
|
# AcceptPathInfo On
|
||||||
|
#</FilesMatch>
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
# Redirect cPanel
|
# Redirect cPanel
|
||||||
RewriteRule cpsess.* https://%{HTTP_HOST}/ [L,R=301]
|
RewriteRule cpsess.* https://%{HTTP_HOST}/ [L,R=301]
|
||||||
|
|
||||||
|
# RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
# RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
# RewriteRule ^(.+)$ index.php/$1 [L,QSA]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,12 @@ abstract class Service
|
||||||
}
|
}
|
||||||
|
|
||||||
$sQuery = \trim($_SERVER['QUERY_STRING'] ?? '');
|
$sQuery = \trim($_SERVER['QUERY_STRING'] ?? '');
|
||||||
|
/*
|
||||||
|
if (!empty($_SERVER['PATH_INFO'])) {
|
||||||
|
$sQuery = "{$_SERVER['PATH_INFO']}&{$sQuery}";
|
||||||
|
$_SERVER['REQUEST_URI'] = \substr($_SERVER['REQUEST_URI'],0, -\strlen($_SERVER['REQUEST_URI']));
|
||||||
|
}
|
||||||
|
*/
|
||||||
$iPos = \strpos($sQuery, '&');
|
$iPos = \strpos($sQuery, '&');
|
||||||
if (0 < $iPos) {
|
if (0 < $iPos) {
|
||||||
$sQuery = \substr($sQuery, 0, $iPos);
|
$sQuery = \substr($sQuery, 0, $iPos);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue