Преглед изворни кода

bug: Hide password values in deeplinks #594 (#596)

James Read пре 1 година
родитељ
комит
cebab32514
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      webui.dev/js/ArgumentForm.js

+ 5 - 1
webui.dev/js/ArgumentForm.js

@@ -221,9 +221,13 @@ class ArgumentForm extends window.HTMLElement {
     if (!ev.target.name) {
       return
     }
-    // Get the current URL and create a new URL object
+
     const url = new URL(window.location.href)
 
+    if (ev.target.type === 'password') {
+      return;
+    }
+
     // copy the parameter value
     url.searchParams.set(ev.target.name, ev.target.value)