Commit 92c368ba authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4610 Using str_replace instead of preg_replace

parent 4fdc9861
......@@ -265,7 +265,7 @@ class PostalAddressAttribute extends TextAreaAttribute
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