Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
92e35494
Commit
92e35494
authored
Dec 07, 2014
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #132 from Flowdalic/saslbase64
Don't return incorrect-encoding when receiving '='
parents
54a2e2d3
84e41fbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
SASLAuthentication.java
...ava/org/jivesoftware/openfire/net/SASLAuthentication.java
+2
-1
No files found.
src/java/org/jivesoftware/openfire/net/SASLAuthentication.java
View file @
92e35494
...
...
@@ -84,7 +84,8 @@ public class SASLAuthentication {
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
SASLAuthentication
.
class
);
// http://stackoverflow.com/questions/8571501/how-to-check-whether-the-string-is-base64-encoded-or-not
private
static
final
Pattern
BASE64_ENCODED
=
Pattern
.
compile
(
"^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$"
);
// plus an extra regex alternative to catch a single equals sign ('=', see RFC 6120 6.4.2)
private
static
final
Pattern
BASE64_ENCODED
=
Pattern
.
compile
(
"^(=|([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==))$"
);
/**
* The utf-8 charset for decoding and encoding Jabber packet streams.
...
...
Write
Preview
Markdown
is supported
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