RESOLVED MOVED240621
[git-webkit] Question 'Are you sure want to setup a fork?' always returns 'Yes'
https://bugs.webkit.org/show_bug.cgi?id=240621
Summary [git-webkit] Question 'Are you sure want to setup a fork?' always returns 'Yes'
Diego Pino
Reported 2022-05-18 20:41:07 PDT
[git-webkit] Question 'Are you sure want to setup a fork?' always returns 'Yes'
Attachments
Patch (2.02 KB, patch)
2022-05-18 20:41 PDT, Diego Pino
no flags
Diego Pino
Comment 1 2022-05-18 20:41:16 PDT
Diego Pino
Comment 2 2022-05-18 20:44:05 PDT
This comparison: ``` option.lower().startswith(response.lower()): ``` is always true when response is an empty string. Thus, the first option is always selected instead of the default option (which is what it's expected when the use doesn't introduce any input).
Diego Pino
Comment 3 2022-05-18 21:20:36 PDT
Note You need to log in before you can comment on or make changes to this bug.