Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
552a5da2
Commit
552a5da2
authored
Mar 17, 2016
by
Côme Chilliet
Browse files
Fixes
#4610
Using str_replace instead of preg_replace
parent
bd5b45bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/personal/generic/class_user.inc
View file @
552a5da2
...
@@ -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
(),
'$\\'
));
}
}
}
}
...
...
mhamant
@mhamant
mentioned in issue
#1470 (closed)
·
Sep 02, 2017
mentioned in issue
#1470 (closed)
mentioned in issue #1470
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment