diff --git a/C4/SIP/Sip.pm b/C4/SIP/Sip.pm index c4cff7ee94..b4056b59d0 100644 --- a/C4/SIP/Sip.pm +++ b/C4/SIP/Sip.pm @@ -97,8 +97,8 @@ sub add_field { ); $value = ''; } - $value =~ s/\r/ /g; # CR terminates a sip message - # Protect against them in sip text fields + $value =~ s/\r\n|\r|\n/ /g; # CR or LF terminates a sip message + # Protect against them in sip text fields # Replace any occurrences of the field delimiter in the # field value with the HTML character entity