]> git.xolatile.top Git - emil-up.chud.cyou.git/commitdiff
reorder the project
authoranon <anon@anon.anon>
Sat, 5 Jul 2025 11:15:10 +0000 (13:15 +0200)
committeranon <anon@anon.anon>
Sat, 5 Jul 2025 11:15:10 +0000 (13:15 +0200)
13 files changed:
Makefile
evil.tcl [deleted file]
example.html [deleted file]
example.lighttpd.conf [deleted file]
example.png [deleted file]
example.txt [deleted file]
example_frontend.html [new file with mode: 0644]
example_frontend.lighttpd.conf [new file with mode: 0644]
test/evil.tcl [new file with mode: 0755]
test/test.png [new file with mode: 0644]
test/test.txt [new file with mode: 0644]
test/upload-test.sh [new file with mode: 0755]
upload-test.sh [deleted file]

index 4eff9afb90b0be3dc138b43789049c386c16a11e..b91412e7acd8aa7cd61d8b398e89c07fbf4a6a21 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ serve:
        lighttpd -D -f lighttpd.conf
 
 front:
-       lighttpd -D -f example.lighttpd.conf
+       lighttpd -D -f example_frontend.lighttpd.conf
 
 clean:
        -${RM} -frfr out/
diff --git a/evil.tcl b/evil.tcl
deleted file mode 100755 (executable)
index 9060f7c..0000000
--- a/evil.tcl
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/tclsh
-
-set f [open "evil.txt" "w"]
-close $f
-
-puts stderr "evil.txt created"
diff --git a/example.html b/example.html
deleted file mode 100644 (file)
index 137594e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<div style="width: 400px;">
-    <form action="http://localhost:8080" method="post" enctype="multipart/form-data">
-        <fieldset>
-            <legend>Upload a file</legend>
-            <label>
-                Select file:
-                <input type="file" name="file" required>
-            </label>
-            <button type="submit">Upload</button>
-        </fieldset>
-    </form>
-</div>
diff --git a/example.lighttpd.conf b/example.lighttpd.conf
deleted file mode 100644 (file)
index 86a4f82..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-# @BAKE lighttpd -D -f $@
-server.document-root = var.CWD
-server.port = "8081"
-
-server.modules += ( "mod_rewrite" )
-url.rewrite-once = ( ".*" => "/example.html" )
diff --git a/example.png b/example.png
deleted file mode 100644 (file)
index df5d578..0000000
Binary files a/example.png and /dev/null differ
diff --git a/example.txt b/example.txt
deleted file mode 100644 (file)
index 557db03..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Hello World
diff --git a/example_frontend.html b/example_frontend.html
new file mode 100644 (file)
index 0000000..137594e
--- /dev/null
@@ -0,0 +1,12 @@
+<div style="width: 400px;">
+    <form action="http://localhost:8080" method="post" enctype="multipart/form-data">
+        <fieldset>
+            <legend>Upload a file</legend>
+            <label>
+                Select file:
+                <input type="file" name="file" required>
+            </label>
+            <button type="submit">Upload</button>
+        </fieldset>
+    </form>
+</div>
diff --git a/example_frontend.lighttpd.conf b/example_frontend.lighttpd.conf
new file mode 100644 (file)
index 0000000..cdca761
--- /dev/null
@@ -0,0 +1,6 @@
+# @BAKE lighttpd -D -f $@
+server.document-root = var.CWD
+server.port = "8081"
+
+server.modules += ( "mod_rewrite" )
+url.rewrite-once = ( ".*" => "/example_frontend.html" )
diff --git a/test/evil.tcl b/test/evil.tcl
new file mode 100755 (executable)
index 0000000..9060f7c
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/tclsh
+
+set f [open "evil.txt" "w"]
+close $f
+
+puts stderr "evil.txt created"
diff --git a/test/test.png b/test/test.png
new file mode 100644 (file)
index 0000000..df5d578
Binary files /dev/null and b/test/test.png differ
diff --git a/test/test.txt b/test/test.txt
new file mode 100644 (file)
index 0000000..557db03
--- /dev/null
@@ -0,0 +1 @@
+Hello World
diff --git a/test/upload-test.sh b/test/upload-test.sh
new file mode 100755 (executable)
index 0000000..936e013
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+curl --upload-file example.png http://localhost:8080/
diff --git a/upload-test.sh b/upload-test.sh
deleted file mode 100755 (executable)
index 936e013..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-curl --upload-file example.png http://localhost:8080/