sanitize changes

pull/13/head
Simon Let 6 years ago
parent d5e2d2764b
commit 7836346a47
  1. 4
      sanitize-history/resh-sanitize-history.go

@ -179,8 +179,8 @@ func (s *sanitizer) sanitizeRecord(record *common.Record) error {
}
func (s *sanitizer) sanitizeCmdLine(cmdLine string) (string, error) {
const optionEndingChars = "\"$'\\#[]!><|;{}()*,?~&=" // all bash control characters and '=' which commonly ends options w/ values
const optionAllowedChars = "-_" // characters commonly found inside of options
const optionEndingChars = "\"$'\\#[]!><|;{}()*,?~&=`" // all bash control characters and '=' which commonly ends options w/ values
const optionAllowedChars = "-_" // characters commonly found inside of options
sanCmdLine := ""
buff := ""

Loading…
Cancel
Save