添加scurl长度错误检测
This commit is contained in:
parent
cff0a27aa0
commit
ab97d012cd
|
@ -102,6 +102,10 @@ func ParseRawCURL(scurl string) (cURL *CURL) {
|
|||
executor := newPQueueExecute()
|
||||
curl := New()
|
||||
|
||||
if len(scurl) <= 4 {
|
||||
panic("scurl error:" + scurl)
|
||||
}
|
||||
|
||||
if scurl[0] == '"' && scurl[len(scurl)-1] == '"' {
|
||||
scurl = strings.Trim(scurl, `"`)
|
||||
} else if scurl[0] == '\'' && scurl[len(scurl)-1] == '\'' {
|
||||
|
|
Loading…
Reference in New Issue
Block a user