PluginProbe
User Access Manager / 2.3.4
User Access Manager v2.3.4
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/File/NginxFileProtection.php +2 -2 2.3.152.3.4 View file →
@@ -28,9 +28,9 @@
28 28 }
29 29
30 30 $location = $this->getLocation(str_replace($absolutePath, '/', $directory));
31 31
32 - $content = "location ~ \"$location\" {\n";
32 + $content = "location $location {\n";
33 33 $content .= "rewrite ^([^?]*)$ /index.php?uamfiletype=$objectType&uamgetfile=$1 last;\n";
34 34 $content .= "rewrite ^(.*)\\?(((?!uamfiletype).)*)$ ";
35 35 $content .= "/index.php?uamfiletype=$objectType&uamgetfile=$1&$2 last;\n";
36 36 $content .= "rewrite ^(.*)\\?(.*)$ /index.php?uamgetfile=$1&$2 last;\n";
@@ -38,9 +38,9 @@
38 38
39 39 return $content;
40 40 }
41 41
42 - public function getFileNameWithPath(?string $directory = null): string
42 + public function getFileNameWithPath(string $directory = null): string
43 43 {
44 44 return ABSPATH . self::FILE_NAME;
45 45 }
46 46