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
5f6c64ee
Commit
5f6c64ee
authored
Feb 01, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New release: 1.0.7
parent
2f74ba2a
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
87 additions
and
42 deletions
+87
-42
bower.json
bower.json
+1
-1
dist/converse-mobile.js
dist/converse-mobile.js
+27
-12
dist/converse-no-dependencies.js
dist/converse-no-dependencies.js
+27
-12
dist/converse.js
dist/converse.js
+27
-12
docs/CHANGES.md
docs/CHANGES.md
+1
-1
docs/source/conf.py
docs/source/conf.py
+2
-2
locale/converse.pot
locale/converse.pot
+1
-1
package.json
package.json
+1
-1
No files found.
bower.json
View file @
5f6c64ee
{
"name"
:
"converse.js"
,
"description"
:
"Web-based XMPP/Jabber chat client written in javascript"
,
"version"
:
"1.0.
6
"
,
"version"
:
"1.0.
7
"
,
"license"
:
"MPL-2.0"
,
"devDependencies"
:
{
"jasmine"
:
"https://github.com/jcbrand/jasmine.git#1_3_x"
,
...
...
dist/converse-mobile.js
View file @
5f6c64ee
/**
* @license almond 0.3.
2
Copyright jQuery Foundation and other contributors.
* @license almond 0.3.
3
Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
//Going sloppy to avoid 'use strict' string cost, but strict practices should
...
...
@@ -195,32 +195,39 @@ var requirejs, require, define;
return [prefix, name];
}
//Creates a parts array for a relName where first part is plugin ID,
//second part is resource ID. Assumes relName has already been normalized.
function makeRelParts(relName) {
return relName ? splitPrefix(relName) : [];
}
/**
* Makes a name map, normalizing the name, and using a plugin
* for normalization if necessary. Grabs a ref to plugin
* too, as an optimization.
*/
makeMap = function (name, rel
Name
) {
makeMap = function (name, rel
Parts
) {
var plugin,
parts = splitPrefix(name),
prefix = parts[0];
prefix = parts[0],
relResourceName = relParts[1];
name = parts[1];
if (prefix) {
prefix = normalize(prefix, relName);
prefix = normalize(prefix, rel
Resource
Name);
plugin = callDep(prefix);
}
//Normalize according
if (prefix) {
if (plugin && plugin.normalize) {
name = plugin.normalize(name, makeNormalize(relName));
name = plugin.normalize(name, makeNormalize(rel
Resource
Name));
} else {
name = normalize(name, relName);
name = normalize(name, rel
Resource
Name);
}
} else {
name = normalize(name, relName);
name = normalize(name, rel
Resource
Name);
parts = splitPrefix(name);
prefix = parts[0];
name = parts[1];
...
...
@@ -267,13 +274,14 @@ var requirejs, require, define;
};
main = function (name, deps, callback, relName) {
var cjsModule, depName, ret, map, i,
var cjsModule, depName, ret, map, i,
relParts,
args = [],
callbackType = typeof callback,
usingExports;
//Use name if no relName
relName = relName || name;
relParts = makeRelParts(relName);
//Call the callback to define the module, if necessary.
if (callbackType === 'undefined' || callbackType === 'function') {
...
...
@@ -282,7 +290,7 @@ var requirejs, require, define;
//Default to [require, exports, module] if no deps
deps = !deps.length && callback.length ? ['require', 'exports', 'module'] : deps;
for (i = 0; i < deps.length; i += 1) {
map = makeMap(deps[i], rel
Name
);
map = makeMap(deps[i], rel
Parts
);
depName = map.f;
//Fast path CommonJS standard dependencies.
...
...
@@ -338,7 +346,7 @@ var requirejs, require, define;
//deps arg is the module name, and second arg (if passed)
//is just the relName.
//Normalize module name, if it contains . or ..
return callDep(makeMap(deps,
callback
).f);
return callDep(makeMap(deps,
makeRelParts(callback)
).f);
} else if (!deps.splice) {
//deps is a config object, not an array.
config = deps;
...
...
@@ -24398,7 +24406,7 @@ define('tpl',['text', 'underscore'], function (text, _) {
onload(buildMap[moduleName]);
} else {
var ext =
(config.tpl && config.tpl.extension) ||
'.html';
var ext =
config.tpl && !_.isUndefined(config.tpl.extension) ? config.tpl.extension :
'.html';
var path = (config.tpl && config.tpl.path) || '';
text.load(path + moduleName + ext, parentRequire, function (source) {
buildMap[moduleName] = _.template(source);
...
...
@@ -29905,7 +29913,14 @@ return Backbone.BrowserStorage;
}
$forwarded = $message.find('forwarded');
if ($forwarded.length) {
$message = $forwarded.children('message');
var $forwarded_message = $forwarded.children('message');
if (Strophe.getBareJidFromJid($forwarded_message.attr('from')) !== from_jid) {
// Prevent message forging via carbons
//
// https://xmpp.org/extensions/xep-0280.html#security
return true;
}
$message = $forwarded_message;
$delay = $forwarded.children('delay');
from_jid = $message.attr('from');
to_jid = $message.attr('to');
dist/converse-no-dependencies.js
View file @
5f6c64ee
/**
* @license almond 0.3.
2
Copyright jQuery Foundation and other contributors.
* @license almond 0.3.
3
Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
//Going sloppy to avoid 'use strict' string cost, but strict practices should
...
...
@@ -195,32 +195,39 @@ var requirejs, require, define;
return
[
prefix
,
name
];
}
//Creates a parts array for a relName where first part is plugin ID,
//second part is resource ID. Assumes relName has already been normalized.
function
makeRelParts
(
relName
)
{
return
relName
?
splitPrefix
(
relName
)
:
[];
}
/**
* Makes a name map, normalizing the name, and using a plugin
* for normalization if necessary. Grabs a ref to plugin
* too, as an optimization.
*/
makeMap
=
function
(
name
,
rel
Name
)
{
makeMap
=
function
(
name
,
rel
Parts
)
{
var
plugin
,
parts
=
splitPrefix
(
name
),
prefix
=
parts
[
0
];
prefix
=
parts
[
0
],
relResourceName
=
relParts
[
1
];
name
=
parts
[
1
];
if
(
prefix
)
{
prefix
=
normalize
(
prefix
,
relName
);
prefix
=
normalize
(
prefix
,
rel
Resource
Name
);
plugin
=
callDep
(
prefix
);
}
//Normalize according
if
(
prefix
)
{
if
(
plugin
&&
plugin
.
normalize
)
{
name
=
plugin
.
normalize
(
name
,
makeNormalize
(
relName
));
name
=
plugin
.
normalize
(
name
,
makeNormalize
(
rel
Resource
Name
));
}
else
{
name
=
normalize
(
name
,
relName
);
name
=
normalize
(
name
,
rel
Resource
Name
);
}
}
else
{
name
=
normalize
(
name
,
relName
);
name
=
normalize
(
name
,
rel
Resource
Name
);
parts
=
splitPrefix
(
name
);
prefix
=
parts
[
0
];
name
=
parts
[
1
];
...
...
@@ -267,13 +274,14 @@ var requirejs, require, define;
};
main
=
function
(
name
,
deps
,
callback
,
relName
)
{
var
cjsModule
,
depName
,
ret
,
map
,
i
,
var
cjsModule
,
depName
,
ret
,
map
,
i
,
relParts
,
args
=
[],
callbackType
=
typeof
callback
,
usingExports
;
//Use name if no relName
relName
=
relName
||
name
;
relParts
=
makeRelParts
(
relName
);
//Call the callback to define the module, if necessary.
if
(
callbackType
===
'
undefined
'
||
callbackType
===
'
function
'
)
{
...
...
@@ -282,7 +290,7 @@ var requirejs, require, define;
//Default to [require, exports, module] if no deps
deps
=
!
deps
.
length
&&
callback
.
length
?
[
'
require
'
,
'
exports
'
,
'
module
'
]
:
deps
;
for
(
i
=
0
;
i
<
deps
.
length
;
i
+=
1
)
{
map
=
makeMap
(
deps
[
i
],
rel
Name
);
map
=
makeMap
(
deps
[
i
],
rel
Parts
);
depName
=
map
.
f
;
//Fast path CommonJS standard dependencies.
...
...
@@ -338,7 +346,7 @@ var requirejs, require, define;
//deps arg is the module name, and second arg (if passed)
//is just the relName.
//Normalize module name, if it contains . or ..
return
callDep
(
makeMap
(
deps
,
callback
).
f
);
return
callDep
(
makeMap
(
deps
,
makeRelParts
(
callback
)
).
f
);
}
else
if
(
!
deps
.
splice
)
{
//deps is a config object, not an array.
config
=
deps
;
...
...
@@ -888,7 +896,7 @@ define('tpl',['text', 'underscore'], function (text, _) {
onload
(
buildMap
[
moduleName
]);
}
else
{
var
ext
=
(
config
.
tpl
&&
config
.
tpl
.
extension
)
||
'
.html
'
;
var
ext
=
config
.
tpl
&&
!
_
.
isUndefined
(
config
.
tpl
.
extension
)
?
config
.
tpl
.
extension
:
'
.html
'
;
var
path
=
(
config
.
tpl
&&
config
.
tpl
.
path
)
||
''
;
text
.
load
(
path
+
moduleName
+
ext
,
parentRequire
,
function
(
source
)
{
buildMap
[
moduleName
]
=
_
.
template
(
source
);
...
...
@@ -4162,7 +4170,14 @@ define("polyfill", function(){});
}
$forwarded
=
$message
.
find
(
'
forwarded
'
);
if
(
$forwarded
.
length
)
{
$message
=
$forwarded
.
children
(
'
message
'
);
var
$forwarded_message
=
$forwarded
.
children
(
'
message
'
);
if
(
Strophe
.
getBareJidFromJid
(
$forwarded_message
.
attr
(
'
from
'
))
!==
from_jid
)
{
// Prevent message forging via carbons
//
// https://xmpp.org/extensions/xep-0280.html#security
return
true
;
}
$message
=
$forwarded_message
;
$delay
=
$forwarded
.
children
(
'
delay
'
);
from_jid
=
$message
.
attr
(
'
from
'
);
to_jid
=
$message
.
attr
(
'
to
'
);
...
...
dist/converse.js
View file @
5f6c64ee
/**
* @license almond 0.3.
2
Copyright jQuery Foundation and other contributors.
* @license almond 0.3.
3
Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
//Going sloppy to avoid 'use strict' string cost, but strict practices should
...
...
@@ -195,32 +195,39 @@ var requirejs, require, define;
return [prefix, name];
}
//Creates a parts array for a relName where first part is plugin ID,
//second part is resource ID. Assumes relName has already been normalized.
function makeRelParts(relName) {
return relName ? splitPrefix(relName) : [];
}
/**
* Makes a name map, normalizing the name, and using a plugin
* for normalization if necessary. Grabs a ref to plugin
* too, as an optimization.
*/
makeMap = function (name, rel
Name
) {
makeMap = function (name, rel
Parts
) {
var plugin,
parts = splitPrefix(name),
prefix = parts[0];
prefix = parts[0],
relResourceName = relParts[1];
name = parts[1];
if (prefix) {
prefix = normalize(prefix, relName);
prefix = normalize(prefix, rel
Resource
Name);
plugin = callDep(prefix);
}
//Normalize according
if (prefix) {
if (plugin && plugin.normalize) {
name = plugin.normalize(name, makeNormalize(relName));
name = plugin.normalize(name, makeNormalize(rel
Resource
Name));
} else {
name = normalize(name, relName);
name = normalize(name, rel
Resource
Name);
}
} else {
name = normalize(name, relName);
name = normalize(name, rel
Resource
Name);
parts = splitPrefix(name);
prefix = parts[0];
name = parts[1];
...
...
@@ -267,13 +274,14 @@ var requirejs, require, define;
};
main = function (name, deps, callback, relName) {
var cjsModule, depName, ret, map, i,
var cjsModule, depName, ret, map, i,
relParts,
args = [],
callbackType = typeof callback,
usingExports;
//Use name if no relName
relName = relName || name;
relParts = makeRelParts(relName);
//Call the callback to define the module, if necessary.
if (callbackType === 'undefined' || callbackType === 'function') {
...
...
@@ -282,7 +290,7 @@ var requirejs, require, define;
//Default to [require, exports, module] if no deps
deps = !deps.length && callback.length ? ['require', 'exports', 'module'] : deps;
for (i = 0; i < deps.length; i += 1) {
map = makeMap(deps[i], rel
Name
);
map = makeMap(deps[i], rel
Parts
);
depName = map.f;
//Fast path CommonJS standard dependencies.
...
...
@@ -338,7 +346,7 @@ var requirejs, require, define;
//deps arg is the module name, and second arg (if passed)
//is just the relName.
//Normalize module name, if it contains . or ..
return callDep(makeMap(deps,
callback
).f);
return callDep(makeMap(deps,
makeRelParts(callback)
).f);
} else if (!deps.splice) {
//deps is a config object, not an array.
config = deps;
...
...
@@ -24398,7 +24406,7 @@ define('tpl',['text', 'underscore'], function (text, _) {
onload(buildMap[moduleName]);
} else {
var ext =
(config.tpl && config.tpl.extension) ||
'.html';
var ext =
config.tpl && !_.isUndefined(config.tpl.extension) ? config.tpl.extension :
'.html';
var path = (config.tpl && config.tpl.path) || '';
text.load(path + moduleName + ext, parentRequire, function (source) {
buildMap[moduleName] = _.template(source);
...
...
@@ -29905,7 +29913,14 @@ return Backbone.BrowserStorage;
}
$forwarded = $message.find('forwarded');
if ($forwarded.length) {
$message = $forwarded.children('message');
var $forwarded_message = $forwarded.children('message');
if (Strophe.getBareJidFromJid($forwarded_message.attr('from')) !== from_jid) {
// Prevent message forging via carbons
//
// https://xmpp.org/extensions/xep-0280.html#security
return true;
}
$message = $forwarded_message;
$delay = $forwarded.children('delay');
from_jid = $message.attr('from');
to_jid = $message.attr('to');
docs/CHANGES.md
View file @
5f6c64ee
# Changelog
## 1.0.7 (
Unreleased
)
## 1.0.7 (
2017-02-01
)
-
Security fix: Prevent message forging via carbons. (Thanks to ge0rg) [jcbrand]
## 1.0.6 (2016-08-12)
...
...
docs/source/conf.py
View file @
5f6c64ee
...
...
@@ -48,9 +48,9 @@ copyright = u'2014, JC Brand'
# built documents.
#
# The short X.Y version.
version
=
'1.0.
6
'
version
=
'1.0.
7
'
# The full version, including alpha/beta/rc tags.
release
=
'1.0.
6
'
release
=
'1.0.
7
'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
...
...
locale/converse.pot
View file @
5f6c64ee
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Converse.js 0.10.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 201
6-08-12 20:41
+0000\n"
"POT-Creation-Date: 201
7-02-01 12:48
+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
package.json
View file @
5f6c64ee
{
"name"
:
"converse.js"
,
"version"
:
"1.0.
6
"
,
"version"
:
"1.0.
7
"
,
"description"
:
"Browser based XMPP instant messaging client"
,
"main"
:
"main.js"
,
"directories"
:
{
...
...
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