1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-17 01:53:32 +00:00
This commit is contained in:
astaxie 2014-11-02 21:01:51 +08:00
parent da127bbc22
commit 90cff5f042

View File

@ -394,6 +394,9 @@ func (leaf *leafInfo) match(wildcardValues []string) (ok bool, params map[string
} }
return true, params return true, params
} }
if len(wildcardValues) <= j {
return false, nil
}
params[v] = wildcardValues[j] params[v] = wildcardValues[j]
j += 1 j += 1
} }