aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoni Sawicki <tenox@google.com>2022-03-25 02:20:55 -0700
committerAntoni Sawicki <tenox@google.com>2022-03-25 02:20:55 -0700
commit700bd63be68d18b83345f8d213e9b8e5bcfedf19 (patch)
treedf6f6b5b24969ea0f1dc6b80f0d4b091eb0ac814
parent8b5204220593f8a2356a33d81117f41d1b29088c (diff)
downloadwfm-700bd63be68d18b83345f8d213e9b8e5bcfedf19.tar.gz
todo update
-rw-r--r--TODO.md6
-rw-r--r--handlers.go2
2 files changed, 3 insertions, 5 deletions
diff --git a/TODO.md b/TODO.md
index 244c2ec..d571e3f 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,12 +1,10 @@
# WFM TODO
## Interfaces
-* webdav server
+* WebDAV server
* FastCGI Interface
## Security
-* https://github.com/microcosm-cc/bluemonday
- use strict policy except for input from text editor
* User manager add/delete/chpw user via arg
* userless/guest read-only mode, user rw
requires custom login window
@@ -30,7 +28,6 @@
## Layout / UI
* add flag to specify own favicon.ico
* top bar too long on mobile/small screen
-* different icons for different file types
* custom html login window - needed for two factor auth?
* editable and non editable documents by extension, also for git checkins
* thumbnail / icon view for pictures, cache thumbnails on server
@@ -40,6 +37,7 @@
* html as template
## File IO
+* do not log FormValue["text"] as it contains text data from edit
* exclude/hide folders based on list
* udf iso format https://github.com/mogaika/udf
* zip/unzip archives
diff --git a/handlers.go b/handlers.go
index 50a26f9..07f0ca4 100644
--- a/handlers.go
+++ b/handlers.go
@@ -14,7 +14,7 @@ func wfm(w http.ResponseWriter, r *http.Request) {
if user == "" {
return
}
- log.Printf("req from=%q user=%q uri=%q form=%#v", r.RemoteAddr, user, r.RequestURI, r.Form)
+ log.Printf("req from=%q user=%q uri=%q form=%v", r.RemoteAddr, user, r.RequestURI, r.Form)
modern := false
if strings.HasPrefix(r.UserAgent(), "Mozilla/5") {
modern = true