Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-jams
Commits
713a4584
Commit
713a4584
authored
4 years ago
by
Larbi Gharib
Browse files
Options
Downloads
Patches
Plain Diff
Accent on search
Change-Id: If8e024a1b4a5408f661eecc819460de876124ccf
parent
5f54a94b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ldap-connector/src/main/java/net/jami/jams/ldap/connector/service/UserProfileService.java
+4
-2
4 additions, 2 deletions
.../jami/jams/ldap/connector/service/UserProfileService.java
with
4 additions
and
2 deletions
ldap-connector/src/main/java/net/jami/jams/ldap/connector/service/UserProfileService.java
+
4
−
2
View file @
713a4584
...
...
@@ -50,7 +50,7 @@ public class UserProfileService {
public
List
<
UserProfile
>
getUserProfile
(
String
queryString
,
String
field
,
boolean
exactMatch
,
Optional
<
Integer
>
page
){
Connection
connection
=
null
;
try
{
queryString
=
queryString
.
replaceAll
(
"[^\\x00-\\x7F]"
,
"*
"
);
queryString
=
new
String
(
queryString
.
getBytes
(
"UTF-8"
),
"ISO-8859-1
"
);
connection
=
connectionFactory
.
getConnection
();
try
{
connection
.
open
();
...
...
@@ -102,7 +102,9 @@ public class UserProfileService {
if
(!
exactMatch
)
{
if
(!
queryString
.
startsWith
(
"*"
))
queryString
=
"*"
.
concat
(
queryString
).
concat
(
"*"
);
queryString
=
"*"
.
concat
(
queryString
);
if
(!
queryString
.
endsWith
(
"*"
))
queryString
=
queryString
.
concat
(
"*"
);
}
if
(
field
.
equals
(
"LOGON_NAME"
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment