zeek/scripts/base/utils
Frerich Raabe bb879fc2aa Fixed decompose_uri choking on URIs with empty port component
A call such as

  decompose_uri("git://git.kernel.org:/pub/scm/linux/");

would raise an error along the lines of

  error in /usr/local/zeek-3.0.0/share/zeek/base/utils/urls.zeek, line 122: bad conversion to count (to_count(parts[1]) and )

This was because an empty string got passsed to the to_count()
function.

Let's improve the behaviour and rather consider the portnum component
of the URI to be uninitialized.
2020-01-24 22:24:00 +01:00
..
active-http.zeek More bro-to-zeek renaming in scripts and other files 2019-05-16 02:36:41 -05:00
addrs.zeek Merge remote-tracking branch 'origin/topic/johanna/remove-deprecated-functions-events' 2019-05-02 19:18:45 -07:00
conn-ids.zeek GH-234: rename Broxygen to Zeexygen along with roles/directives 2019-04-22 19:45:50 -07:00
dir.zeek GH-234: rename Broxygen to Zeexygen along with roles/directives 2019-04-22 19:45:50 -07:00
directions-and-hosts.zeek Rename all scripts to have ".zeek" file extension 2019-04-11 21:12:40 -05:00
email.zeek Rename all scripts to have ".zeek" file extension 2019-04-11 21:12:40 -05:00
exec.zeek GH-234: rename Broxygen to Zeexygen along with roles/directives 2019-04-22 19:45:50 -07:00
files.zeek Rename all scripts to have ".zeek" file extension 2019-04-11 21:12:40 -05:00
geoip-distance.zeek More bro-to-zeek renaming in scripts and other files 2019-05-16 02:36:41 -05:00
hash_hrw.zeek Rename all scripts to have ".zeek" file extension 2019-04-11 21:12:40 -05:00
json.zeek Add proper JSON serialization via C++, deprecate json.zeek 2019-07-02 12:52:26 -07:00
numbers.zeek Rename all scripts to have ".zeek" file extension 2019-04-11 21:12:40 -05:00
paths.zeek GH-234: rename Broxygen to Zeexygen along with roles/directives 2019-04-22 19:45:50 -07:00
patterns.zeek More bro-to-zeek renaming in scripts and other files 2019-05-16 02:36:41 -05:00
queue.zeek Rename all scripts to have ".zeek" file extension 2019-04-11 21:12:40 -05:00
site.zeek More bro-to-zeek renaming in scripts and other files 2019-05-16 02:36:41 -05:00
strings.zeek More bro-to-zeek renaming in scripts and other files 2019-05-16 02:36:41 -05:00
thresholds.zeek GH-234: rename Broxygen to Zeexygen along with roles/directives 2019-04-22 19:45:50 -07:00
time.zeek Rename all scripts to have ".zeek" file extension 2019-04-11 21:12:40 -05:00
urls.zeek Fixed decompose_uri choking on URIs with empty port component 2020-01-24 22:24:00 +01:00