aboutsummaryrefslogtreecommitdiffstats
path: root/test/tests/TestServer.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-09-07 21:46:55 +0300
committerRblSb <msrblsb@gmail.com>2021-09-08 19:50:45 +0300
commit935505a515d05a65907254fe1d822c41fb07154f (patch)
tree7663affdfdd3f59a4283a91539c4a3d034f3fb87 /test/tests/TestServer.hx
parent9f819388fbcdd07b6dc85fcf87fd2d6661b61bc3 (diff)
Add CI
Diffstat (limited to 'test/tests/TestServer.hx')
-rw-r--r--test/tests/TestServer.hx6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tests/TestServer.hx b/test/tests/TestServer.hx
index e5cee58..83031f1 100644
--- a/test/tests/TestServer.hx
+++ b/test/tests/TestServer.hx
@@ -12,6 +12,8 @@ import utest.Assert;
import utest.Async;
import utest.Test;
+using StringTools;
+
@:access(server)
class TestServer extends Test {
@:timeout(500)
@@ -29,7 +31,9 @@ class TestServer extends Test {
Assert.equals("File %D0%AB%%D1%8B%00%D1%8B! not found.", data);
});
request('$url/video/skins/default.php?dir_inc=/etc/passwd%00', data -> {
- Assert.equals("File video/skins/default.php?dir_inc=/etc/passwd not found.", data);
+ var line = "File video/skins/default.php?dir_inc=/etc/passwd not found.";
+ if (Sys.systemName() == "Windows") line = line.replace("/", "\\");
+ Assert.equals(line, data);
});
request('$url/%20', data -> {
Assert.equals("File not found.", data);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage