Commit Graph

52 Commits (master)

Author SHA1 Message Date
Barrington 968a288866
Add support to ban extensions 2023-09-24 13:44:04 +02:00
Rawley 47d733b2f4
Add .perltidyrc, and format (#24)
* Add .perltidyrc, and format

* Format code

* Change tab size
2023-04-26 18:02:41 +02:00
Rawley ac77cbfe4b
Improve logging (#23)
* Greatly improve logging with Mojo::Log
2023-03-24 08:05:01 +01:00
Barrington 338c4c2771
Added POD documentation to sakisafe.pl 2023-03-15 14:54:25 +01:00
Rawley 1d53129435
Add Dockerfile (#22)
* added perl makefile

* fixup gitignore and eval

* add docker file
2023-03-14 13:14:48 +01:00
Rawley deb4318cd9
Add Makefile.PL and allow banned IP's to be derived from a file (#21)
* added perl makefile

* fixup gitignore and eval
2023-03-13 14:18:46 +01:00
Barrington e62bcfa9d8
Added template for downlaod link in browsers, curl and similars just spit the link. 2023-02-13 21:30:11 +01:00
Barrington 5605143ffa
Version 2023-02-12 13:46:33 +01:00
Barrington 4b06627b0a
Goddamit, emacs 2023-02-12 13:44:09 +01:00
Barrington 4fcd649b0b
Alright fixed more bugs 2023-02-12 13:42:18 +01:00
Barrington dcea6b2a24
Bug fix 2023-02-12 13:29:44 +01:00
Barrington f52dcbb721
Add colors to the warnings 2023-02-12 10:19:16 +01:00
Barrington b8dd0be83b
More verbose error messages using the 'Carp' module and $ERRNO 2023-02-12 10:02:36 +01:00
Barrington c8f7473690
Added support for OpenBSD's pledge because i was bored. 2023-02-11 11:43:49 +01:00
Barrington e8f03c430c
Added MIME types and stuff so the browser is able to show the file [experimental] 2022-12-30 08:52:51 +01:00
Barrington 2d9e3fc94c
this code should be refactored 2022-12-19 18:34:17 +01:00
Barrington e361669b87
Added feature to ban IP addresses and also a logger 2022-11-22 15:23:03 +01:00
Barrington 80ef5e6ba2
append .txt to the filename if the filename is "-" 2022-11-21 13:02:00 +01:00
Barrington db06f1cdc4
Better index 2022-11-21 12:59:53 +01:00
Barrington 7ef35ba9bd
Removed unnecessary files 2022-11-20 15:08:49 +01:00
Barrington 5fbb1f5257
Renamed upload.cgi to sakisafe.pl 2022-11-20 15:07:45 +01:00
Barrington 868ba54822
Allow post to / 2022-11-20 15:07:34 +01:00
Barrington 84ec3c9bc1
Rewrote the shit using Mojo 2022-11-20 12:21:31 +01:00
qorg11 0d1e07fe51
Rebranded 2022-05-05 20:04:29 +02:00
qorg11 3d5593abc9
Fixed shebang 2021-10-17 19:01:28 +02:00
qorg11 6e67fb78ed
Fixed the shit lol 2021-10-17 19:00:54 +02:00
qorg11 d041a216f7
Modified the thing so you can easily paste and new index 2021-10-17 18:13:39 +02:00
qorg11 3f3d173e5d
append .txt if the filename is "-"
This is to allow pastes like `curl -F'file=@-;' https://ls.qorg11.net`
2021-10-17 14:47:28 +02:00
qorg11 20b30be2f5
Modified index 2021-10-12 13:58:57 +02:00
qorg11 082d1ae23a
Make lainsafe change the name repleace the spaces in the url with %20
for weird browsers and weird clients (poezio i'm looking at you)
2021-03-23 12:43:31 +01:00
qorg11 ffd96c69cc
Modified the way that lainsafe stores files
Now it creates a directory for the new file, with a random name, and
and stores the file with the original filename in there, so .tar.gz
issue is fixed.
2021-01-30 22:25:07 +01:00
qorg11 100c1666f3
Default file size to 100MB 2020-11-26 21:57:53 +01:00
qorg11 bb3ac7f248
s/github.com/codeberg.org/
some idiot will tell me that ACKSHUALLY is s/github\.com/codeberg.org

fuck you
2020-11-24 22:20:41 +01:00
qorg11 ac4c841e64
Stop if request method is GET 2020-11-15 02:48:42 +01:00
qorg11 68d9f1e56e
Change the .cgi extension to .notcgi so the stupid http server doesn't try to execute it 2020-11-14 22:48:02 +01:00
qorg11 d85e35d0d5
POSTing to / is now possible 2020-11-14 22:35:26 +01:00
qorg11 706d73d151
Fixed the download-link spitting 2020-09-13 00:12:37 +02:00
Kyle Czar b6e32c25a5 Url formatting is handled by the server 2020-08-30 13:08:36 -03:00
qorg11 8a557ca108
Modified the way lainsafe renames file
Before this commit lainsafe would generate a random string
which can create coallition between two files and shit would
happen, after this commit, lainsafe generates its filenames by
getting the UNIX time in miliseconds (like 4chan)
2020-08-27 00:03:26 +02:00
qorg11 f5967c88c0
Fix indendation in http/upload.cgi 2020-07-01 17:50:58 +02:00
qorg11 430df19608
Now you can tell the shit which file extensions you can't upload 2020-06-30 00:05:55 +02:00
qorg11 32f9272595
Added git repo in the bottom of the site 2020-06-26 04:45:26 +02:00
qorg11 911418aac5
My mistake 2020-05-12 03:21:45 +02:00
qorg11 f154c62f70
Added documentation 2020-04-30 01:05:50 +02:00
qorg11 3f14f50674
I'm the stupidest human alive. 2020-04-27 03:53:36 +02:00
qorg11 810ef93471
Cleaned code. A bit. 2020-04-26 19:31:39 +02:00
qorg11 ee791ee09b
Added variable 2020-04-26 00:58:10 +02:00
qorg11 e4efd404ed
fuck "my" 2020-04-25 21:30:18 +02:00
qorg11 3d45e1748a
I'm retarded 2020-04-25 21:27:27 +02:00
qorg11 fdd5a98080
Added status to index 2020-04-24 21:13:53 +02:00