fix: avoid printing confusing message when input contains special character#495
Conversation
…e `%` Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
|
Can you take a look at why https://github.com/gojue/ecapture/actions/runs/8090653564/job/22108477495?pr=495#step:6:22 |
|
There are multiple linters in It disables all linter and enable To enable I ran golanglint-ci on 286bdcf again, and get the following output: I verified through the GitHub Actions running on the code essentially only changed the configuration for workflow (i.e., add support for |
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
|
changes that do not change the program behavior
changes that change the program behavior
Finally, I want to mentioned the following code (previous) which is not obvious though : var conf config.IConfig
conf = goc
if conf == nil {
logger.Printf("ECAPTURE :: \tcant found module %s config info.", mod.Name())
return
}
Although the checks like |
Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
The following usage would printed out confusing message when user controlled input contains special character like "%s".
Query field is controlled by user and may contains special character.
Reproduce
run the following command in the terminal:
run the following command in another terminal:
output: