diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-24 17:06:18 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-24 17:06:18 +0200 | 
| commit | d5a7a2df1fdeb2d82c51a0d78493bfb7241160c2 (patch) | |
| tree | 1ac695a756e3570bf06b1a7658d143fc2b264657 /bin/guiscripts/osurf-fill | |
| parent | 1f7e952a75a870b0a4e9900964cae3729c216cc3 (diff) | |
checkpoint
Diffstat (limited to 'bin/guiscripts/osurf-fill')
| -rwxr-xr-x | bin/guiscripts/osurf-fill | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/guiscripts/osurf-fill b/bin/guiscripts/osurf-fill index 43af807..6ea8e7e 100755 --- a/bin/guiscripts/osurf-fill +++ b/bin/guiscripts/osurf-fill @@ -67,7 +67,7 @@ printf '%s : %s\n' "$username" "$password"  # Escape quotes and backslashes for javascript  javascript_escape() { -    printf '%s' "$1" | sed -s 's,['\''"\\\\],\\\\&,g' +    printf '%s' "$1" | sed -s 's,['\''"\\\\],\\&,g'  }  js() { @@ -99,15 +99,12 @@ cat <<EOF                  input.focus();                  input.value = "$(javascript_escape "$username")";                  input.blur(); -                console.log("user: $(javascript_escape "$username")")              }              if (input.type == "password" || input.name == "password" || input.autocomplete == "password" || input.id == "password" ) {                  input.focus();                  input.value = "$(javascript_escape "$password")";                  input.blur(); -                console.log("password: $(javascript_escape "$password")")              } -            console.log(input)          }      };      var forms = document.getElementsByTagName("form");  | 
