diff --git a/C4/SIP/Sip.pm b/C4/SIP/Sip.pm index 8d27f64af1..d2fd18e16a 100644 --- a/C4/SIP/Sip.pm +++ b/C4/SIP/Sip.pm @@ -72,8 +72,8 @@ sub add_field { $field_id); $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