mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
fix: single quotes can now be used to clear variables (fixes #450)
This commit is contained in:
parent
6980b864f5
commit
742e7fd8bb
2 changed files with 3 additions and 2 deletions
|
@ -223,7 +223,7 @@ func (s *Session) setHandler(args []string, sess *Session) error {
|
|||
key := args[0]
|
||||
value := args[1]
|
||||
|
||||
if value == "\"\"" {
|
||||
if value == "\"\"" || value == "''" {
|
||||
value = ""
|
||||
}
|
||||
|
||||
|
@ -240,7 +240,7 @@ func (s *Session) readHandler(args []string, sess *Session) error {
|
|||
|
||||
value, _ := reader.ReadString('\n')
|
||||
value = str.Trim(value)
|
||||
if value == "\"\"" {
|
||||
if value == "\"\"" || value == "''" {
|
||||
value = ""
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue