From 7b360d91a6667034da7c682af01ee1008d052c40 Mon Sep 17 00:00:00 2001 From: Daniel Watson Date: Tue, 12 Sep 2023 00:06:14 -0700 Subject: [PATCH] ; send filename, not full path, on EWW form submit ; * lisp/net/eww.el (eww-submit): Instead of sending the entire file ; path, send just the filename and not the directory. This is the ; behavior seen in other clients, such as firefox, chromium, and curl. ; It keeps information about the users directory structure private. --- lisp/net/eww.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 4ddda216afc..f28273dcc58 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1849,7 +1849,7 @@ eww-submit (insert-file-contents file) (buffer-string))) (cons "name" name) - (cons "filename" file)) + (cons "filename" (file-name-nondirectory file))) values))) ((equal (plist-get input :type) "submit") ;; We want the values from buttons if we hit a button if -- 2.39.2