mirror of
https://github.com/chainreactors/spray.git
synced 2026-10-29 11:50:52 +00:00
修复空行的bug
This commit is contained in:
1 parent
c45e95e803
commit
a9a320bfbe
1 file changed
+2
-2
+2
-2
@@ -170,11 +170,11 @@ func (opt *Option) PrepareRunner() (*Runner, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
urls = strings.Split(string(content), "\n")
|
||||
urls = strings.Split(strings.TrimSpace(string(content)), "\n")
|
||||
}
|
||||
|
||||
r.URLList = urls
|
||||
logs.Log.Importantf("load %d urls from %s", len(urls), urlfrom)
|
||||
logs.Log.Importantf("Loaded %d urls from %s", len(urls), urlfrom)
|
||||
|
||||
// prepare word
|
||||
dicts := make([][]string, len(opt.Dictionaries))
|
||||
|
||||
Reference in new issue
Block a user