We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a09eab2 + 28c87c0 commit e062332Copy full SHA for e062332
PhpSecInfo/Test/Core/upload_tmp_dir.php
@@ -71,7 +71,7 @@ function _execTest()
71
if ($perms === false) {
72
return PHPSECINFO_TEST_RESULT_WARN;
73
} else if ($this->current_value
74
- && !preg_match("|" . PHPSECINFO_TEST_COMMON_TMPDIR . "/?|", $this->current_value)
+ && !preg_match("%^" . PHPSECINFO_TEST_COMMON_TMPDIR . "(/|$)%", $this->current_value)
75
&& !($perms & 0x0004)
76
&& !($perms & 0x0002)
77
) {
@@ -101,4 +101,4 @@ function _setMessages()
101
upload_tmp_dir to a non-world-readable directory');
102
}
103
104
-}
+}
0 commit comments