Skip to content

Commit 0d4e8c1

Browse files
authored
Merge pull request #39 from xlyz/patch-2
quote ip address
2 parents db33d4f + 7961c28 commit 0d4e8c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apache/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ isQuoteValue() {
172172
return true;
173173
}
174174
175+
if (filter_var(\$value, FILTER_VALIDATE_IP)) {
176+
return true;
177+
}
178+
175179
if (!preg_match('/[^0-9.]+/', \$value)) {
176180
return false;
177181
}

0 commit comments

Comments
 (0)