Commit Graph

129 Commits

Author SHA1 Message Date
mildis 13ed3cf3ab Do no force path while sending email.
Preserve custom prefix.

Close #134
2019-03-28 09:58:43 +01:00
Luc Didry 82b8a4d017
Fix dependences in Lufi.pm 2018-11-02 10:02:47 +01:00
Luc Didry 66a724147d
Fix default CSP Header 2018-10-29 22:54:25 +01:00
Luc Didry cd0c4fea4e
Fix warning in change lang endpoint 2018-10-28 21:52:21 +01:00
Luc Didry 9fb59173fc
Fix #129 — Add constraints on mail sending to prevent spam sending 2018-10-28 14:41:29 +01:00
Luc Didry c64d26a292
Fix header injection and open redirects from referrer header 2018-10-26 17:34:50 +02:00
Luc Didry 72404aaf99
Fix header injection from lang code 2018-10-26 17:26:14 +02:00
Luc Didry da7cb658df
Add CSRF token challenge on logout 2018-10-26 16:03:21 +02:00
Luc Didry 548f838e60
Add CSRF token challenge on login 2018-10-26 14:53:06 +02:00
Luc Didry 86c319bac9
Put shortener helper in Mojolicious::Plugin::FiatTux::Helpers 2018-10-25 19:41:49 +02:00
Luc Didry b57ed7605f
Create DefaultConfig module — DRY 2018-10-25 18:42:07 +02:00
Luc Didry 218c4ad2af
Use FiatTux::Themes plugin 2018-10-25 10:22:07 +02:00
Luc Didry 44507ccfa5
Add MySQL support 2018-10-24 23:05:19 +02:00
Luc Didry e41b08601d
Add a test suite 2018-10-24 21:56:37 +02:00
Luc Didry a4149b73ba
Fix #126 - Add a command to migrate data from SQLite to an other database 2018-10-24 17:50:17 +02:00
Luc Didry 722ba6708b
Update cron commands default config 2018-10-24 17:23:46 +02:00
Luc Didry 6958b7fc0a
Use a recurrent task to provision shorts 2018-10-24 16:04:10 +02:00
Luc Didry 986e7793db
Allow to choose your language 2018-10-22 23:54:20 +02:00
Luc Didry 377a48bda2
Add report file link in the navbar 2018-10-22 21:21:11 +02:00
Luc Didry 377ba0d0b8
Add Content-Security-Policy header - related to #80 2018-10-21 20:20:54 +02:00
Luc Didry 25ab7e644d
Fix #78 - Allow to block files by setting an abuse field in DB 2018-10-21 18:24:48 +02:00
Luc Didry b6188097b1
Fix #119 - Use GzipStatic and StaticCache plugins for speed 2018-10-21 15:26:20 +02:00
Luc Didry c2e9268cc7
Fix #123 - Option to force "Burn after reading" for each uploaded file 2018-10-21 14:49:24 +02:00
Luc Didry 13e8553cf4
Use FiatTux plugins
WARNING! LDAP configuration has changed! Check lufi.conf.template
2018-10-21 14:49:24 +02:00
Luc Didry 1646980c22
Use Mojo::SQLite instead of ORLite + update deps 2018-10-21 14:49:23 +02:00
Luc Didry 7c8ac69ffe Fix #104 Use config->prefix to set cookie path
This commit is dedicated to Michael Kozma, who is supporting me with Ğ1.
Many thanks :-)
2018-04-12 18:25:48 +02:00
s7b4 b3c6a28c73 use MOJO_CONFIG variable in Mounter.pm 2018-04-12 18:25:48 +02:00
Luc Didry 7efebff4bf Fix cron tasks bug
- upload_dir had no default value in cleanfiles task
- upload_dir was not used in watch task
2017-09-18 08:53:50 +02:00
Luc Didry 68693fa368 Fix DB abstraction layer bug 2017-09-14 09:31:17 +02:00
Luc Didry 9c62d4c394 Fix cron command for Pg 2017-09-12 23:08:25 +02:00
Luc Didry 7aae44f6cc Fix #64 2017-09-11 21:30:45 +02:00
Luc Didry 5754ac2113 Remove trailing spaces and replace tabs with spaces 2017-09-11 20:58:47 +02:00
Luc Didry 18499a1106 Add PostgreSQL support 2017-07-22 20:39:36 +02:00
Luc Didry d5395f4296 Bug in SQLite file layer 2017-07-22 19:17:31 +02:00
Luc Didry d909b8ad70 Add DB abstraction layer 2017-07-22 18:56:13 +02:00
Luc Didry 5684cbe17f Put helpers in a plugin 2017-07-20 18:01:47 +02:00
Luc Didry abebf60861 respond_to correction 2017-07-19 20:26:26 +02:00
Luc Didry 1c2cee539d Add instance statistics at /fullstats 2017-07-17 22:23:38 +02:00
Luc Didry 1fbe93a71c Update Mojolicious version (use Mojo::File instead of Mojo::Util spurt/slurp) 2017-07-15 14:25:44 +02:00
Luc Didry 0050db6cb3 Aesthetic code changes 2017-07-14 12:54:17 +02:00
popi 598c7c1e98 fix ldap filtering 2017-07-14 12:53:50 +02:00
juju4 f2433c30b4 issue #86 2017-07-14 12:53:33 +02:00
Yann dbdaff9421 Add htpasswd file support for user authentication
Fixes based on merge request discussion by Luc Didry: https://framagit.org/luc/lufi/merge_requests/7

Coding style
2017-07-14 12:53:27 +02:00
Luc Didry 50b1f00c17 Add ability to protect download with a password 2017-07-14 12:52:03 +02:00
Luc Didry b219064794 Fix delay handling 2016-12-31 14:09:00 +01:00
Luc Didry bd0c26dd2d Handle case where sender doesn't specify delay 2016-12-31 07:45:47 +01:00
Luc Didry 9d5bb760e5 Add occitan translation 2016-11-13 13:53:52 +01:00
Luc Didry 378c6622c8 Add IT translation in theme command 2016-07-24 19:40:01 +02:00
Luc Didry d94c2b7f90 Fix XSS bugs
Thanks to Neil Jomunsi (http://page42.org) to support me on Tipeee :-)
2016-07-24 18:39:21 +02:00
Luc Didry 3bbe8000d3 Fix #50 Add users infos in log and db if using ldap 2016-07-24 18:39:21 +02:00
Luc Didry 6f3cf342ac Fix #36 2016-07-24 18:39:21 +02:00
Luc Didry ac8d764b06 Add optionnal LDAP authentication for uploading files 2016-07-24 18:39:20 +02:00
Sebastien Duthil aa0c5ac170 fix typos in english translation 2016-07-24 18:32:48 +02:00
Luc Didry 9e55797c19 Use Data::Entropy for randomness (see #19) 2016-07-24 18:32:48 +02:00
Luc Didry f94ae4348b Fix #13 2016-07-24 18:32:48 +02:00
Luc Didry cd104cb512 Fix unnecessary slices write
It seems that's the culprit for bad response time when sending big
files.
2016-07-24 18:32:48 +02:00
Luc Didry 58d1132ef6 Fix typo (#16 related) 2016-07-24 18:32:48 +02:00
Luc Didry dab5784800 Fix #15 2016-07-24 18:32:48 +02:00
Luc Didry a594b9111c Handle WebSocket errors 2016-07-24 18:32:41 +02:00
Luc Didry 4858866569 Increase ws timeout + lower sliceLength + console informations 2015-10-09 02:53:16 +02:00
Luc Didry f93f194e60 Fix strange bug 2015-10-08 15:44:48 +02:00
Luc Didry 9601636ec1 Add theme skeleton generator 2015-10-07 00:35:10 +02:00
Luc Didry da9c06fc6b Add i18n to themes system 2015-10-06 02:43:39 +02:00
Luc Didry adf0a4d2f2 Themes system 2015-10-06 02:12:22 +02:00
Luc Didry 2ccd065e1d Fix #9 2015-10-05 23:07:35 +02:00
Luc Didry 99abed1bf9 Add about page 2015-10-04 21:00:31 +02:00
Luc Didry 60e157ff71 Fix #3 2015-10-04 19:44:51 +02:00
Luc Didry 2dfb0e5998 Update translations 2015-10-04 17:02:53 +02:00
Luc Didry c21d1bc604 Update translation files 2015-10-04 04:09:02 +02:00
Luc Didry 40deab60a9 Add cron tasks + stop-upload file check 2015-10-04 03:24:37 +02:00
Luc Didry 841e8c4436 Use helper for max_delay 2015-10-04 01:49:57 +02:00
Luc Didry 10a8dd8603 Add max size handling 2015-10-04 01:39:52 +02:00
Luc Didry be8c84ecec Use configured size's delay 2015-10-04 01:00:36 +02:00
Luc Didry 41cb17e20b Add delay information page 2015-10-03 23:54:08 +02:00
Luc Didry 2863f008fd Add some checks and error messages 2015-10-03 22:55:55 +02:00
Luc Didry 26787d9cb1 Make file created_at when file upload is complete 2015-10-03 22:03:50 +02:00
Luc Didry 995a383294 Some code cosmetic changes 2015-10-03 01:25:52 +02:00
Luc Didry ae8934c1d9 Fix #2 Add share by mail page 2015-10-03 01:22:43 +02:00
Luc Didry 91e07880b6 First commit. Working. 2015-09-21 02:05:06 +02:00