mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
fix url parsing bug
This commit is contained in:
parent
b4fce308f0
commit
fa654121ec
2 changed files with 16 additions and 5 deletions
|
@ -277,12 +277,12 @@ function check_ocsp_request_uri(http: HTTP::Info): OCSP::Request
|
|||
parsed_req = ocsp_parse_request(decode_base64(ocsp_req_str));
|
||||
if ( ! parsed_req?$requestList || |parsed_req$requestList| == 0 )
|
||||
{
|
||||
# normal parse fails, bug url, natively try each part
|
||||
# normal parse fails, bug url, naively try each part
|
||||
local w = split_string(http$original_uri, /\//);
|
||||
local s = "";
|
||||
for ( i in w )
|
||||
{
|
||||
s += "/" + w[i];
|
||||
s += w[i] + "/";
|
||||
ocsp_req_str = http$uri[|s|:];
|
||||
parsed_req = ocsp_parse_request(decode_base64(ocsp_req_str));
|
||||
if ( parsed_req?$requestList && |parsed_req$requestList| > 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue