Tweak to SMTP script to adjust for new string slicing behaviour.

Also updating NEWS with a note.
This commit is contained in:
Robin Sommer 2013-12-04 13:11:08 -08:00
parent 3c6f82ca73
commit d5a48f04ac
2 changed files with 4 additions and 1 deletions

3
NEWS
View file

@ -16,6 +16,9 @@ New Functionality
Changed Functionality
---------------------
- string slices now exclude the end index (e.g., "123"[1:2] returns
"2"). Generally, Bro's string slices now behave similar to Python.
- ssl_client_hello() now receives a vector of ciphers, instead of a
set, to preserve their order.

View file

@ -291,7 +291,7 @@ function describe(rec: Info): string
{
if ( |rec$subject| > 20 )
{
abbrev_subject = rec$subject[0:20] + "...";
abbrev_subject = rec$subject[0:21] + "...";
}
}