Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
adb4f62e
Commit
adb4f62e
authored
Feb 25, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #790 mam retrieval broken
parent
2c8b31c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
docs/CHANGES.md
docs/CHANGES.md
+1
-1
src/converse-core.js
src/converse-core.js
+3
-2
No files found.
docs/CHANGES.md
View file @
adb4f62e
...
...
@@ -58,7 +58,7 @@
-
#694 The
`notification_option`
wasn't being used consistently. [jcbrand]
-
#745 New config option
[
priority
](
https://conversejs.org/docs/html/configuration.html#priority
)
[
jcbrand
]
-
#770 Allow setting contact attrs on chats.open [Ape]
-
#790 MAM retrieval broken [jcbrand]
## 2.0.6 (2017-02-13)
-
Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand]
...
...
src/converse-core.js
View file @
adb4f62e
...
...
@@ -1476,7 +1476,8 @@
chatbox
,
resource
,
from_jid
=
message
.
getAttribute
(
'
from
'
),
to_jid
=
message
.
getAttribute
(
'
to
'
),
to_resource
=
Strophe
.
getResourceFromJid
(
to_jid
);
to_resource
=
Strophe
.
getResourceFromJid
(
to_jid
),
is_carbon
=
!
_
.
isNull
(
message
.
querySelector
(
'
received[xmlns="
'
+
Strophe
.
NS
.
CARBONS
+
'
"]
'
));
if
(
_converse
.
filter_by_resource
&&
(
to_resource
&&
to_resource
!==
_converse
.
resource
))
{
_converse
.
log
(
...
...
@@ -1498,7 +1499,7 @@
if
(
!
_
.
isNull
(
forwarded
))
{
var
forwarded_message
=
forwarded
.
querySelector
(
'
message
'
);
var
forwarded_from
=
forwarded_message
.
getAttribute
(
'
from
'
);
if
(
Strophe
.
getBareJidFromJid
(
forwarded_from
)
!==
from_jid
)
{
if
(
is_carbon
&&
Strophe
.
getBareJidFromJid
(
forwarded_from
)
!==
from_jid
)
{
// Prevent message forging via carbons
//
// https://xmpp.org/extensions/xep-0280.html#security
...
...
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