diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-03-05 22:22:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-05 22:22:45 +0300 |
commit | 888b259666437aa0b98d97b9bd62a2b1514697e1 (patch) | |
tree | 9f51aecbc4daea376f9857a081f17c22d7735311 /plugins/Installation | |
parent | 10c8d80708832e3ae0dd1e8e5f64c91426f1e42f (diff) |
Fix issue with HeatmapSessionRecording on IIS (#15669)
Diffstat (limited to 'plugins/Installation')
-rw-r--r-- | plugins/Installation/ServerFilesGenerator.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/Installation/ServerFilesGenerator.php b/plugins/Installation/ServerFilesGenerator.php index 3bc5750e22..7ed67db57a 100644 --- a/plugins/Installation/ServerFilesGenerator.php +++ b/plugins/Installation/ServerFilesGenerator.php @@ -167,6 +167,12 @@ Header set Cache-Control \"Cache-Control: private, no-cache, no-store\" '/vendor', '/plugins', ); + + $additionForPlugins = ' + <alwaysAllowedUrls> + <add url="/plugins/HeatmapSessionRecording/configs.php" /> + </alwaysAllowedUrls>'; + foreach ($directoriesToProtect as $directoryToProtect) { @file_put_contents(PIWIK_INCLUDE_PATH . $directoryToProtect . '/web.config', '<?xml version="1.0" encoding="UTF-8"?> @@ -176,7 +182,7 @@ Header set Cache-Control \"Cache-Control: private, no-cache, no-store\" <requestFiltering> <denyUrlSequences> <add sequence=".php" /> - </denyUrlSequences> + </denyUrlSequences>' . ($directoryToProtect === '/plugins' ? $additionForPlugins : '') . ' </requestFiltering> </security> </system.webServer> |