]> git.evergreen-ils.org Git - working/SIPServer.git/commit
LP#1070470: Limit variable fields to 255 characters.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 23 Oct 2012 14:36:48 +0000 (10:36 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 8 Jul 2014 15:57:38 +0000 (08:57 -0700)
commita933d99cc6339d77fe159c8dd70d9deeba5fdc3a
treec9e017a8003785c386d54357f0eed5de1c5d7099
parentd1744b4e09f3e6722e1f69e9ea8b49deb9fc4b3c
LP#1070470: Limit variable fields to 255 characters.

The SIP2 protocol document specifies that variable fields are to be from
0 to 255 characters in length, not counting the field identifier or the
delimiter.

This branch adds some defensive coding to Sip::add_field to truncate any
field values that are longer than 255 characters to 255 characters before
adding them to the response.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Sip.pm