Commit 552a5da2 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4610 Using str_replace instead of preg_replace

parent bd5b45bb
...@@ -265,7 +265,7 @@ class PostalAddressAttribute extends TextAreaAttribute ...@@ -265,7 +265,7 @@ class PostalAddressAttribute extends TextAreaAttribute
function computeLdapValue () function computeLdapValue ()
{ {
return preg_replace("/\n/", '$', addcslashes($this->getValue(), '$\\')); return str_replace(array("\r\n", "\n", "\r"), '$', addcslashes($this->getValue(), '$\\'));
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment