Skip to content

Commit f2f82cd

Browse files
author
bnu
committed
Merge branch 'release/1.8.7'
2 parents c0bd10e + 125de38 commit f2f82cd

File tree

6 files changed

+58
-20
lines changed

6 files changed

+58
-20
lines changed

Gruntfile.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,17 @@ module.exports = function(grunt) {
299299
grunt.file.delete('build/xe');
300300
grunt.file.delete('build/temp.full.tar');
301301

302-
grunt.log.ok('Done!');
302+
grunt.util.spawn({
303+
cmd: "git",
304+
args: ['diff', '--name-status', target]
305+
}, function (error, result, code) {
306+
var fs = require('fs');
307+
result = 'Added (A), Copied (C), Deleted (D), Modified (M), Renamed (R).' + grunt.util.linefeed + result;
308+
grunt.file.write(build_dir + '/CHANGED.' + version + '.txt', result);
309+
310+
grunt.log.ok('Done!');
311+
});
312+
303313
});
304314
});
305315
}

common/js/plugins/jquery.fileupload/js/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
// send Blob objects via XHR requests:
3838
disableImageResize: /Android(?!.*Chrome)|Opera/
3939
.test(window.navigator.userAgent),
40-
maxFileSize: 5000000,
40+
maxFileSize: 999000,
4141
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
4242
});
4343
}

common/js/plugins/jquery.fileupload/js/jquery.fileupload-image.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
blob.name = file.name;
243243
} else if (file.name) {
244244
blob.name = file.name.replace(
245-
/\..+$/,
245+
/\.\w+$/,
246246
'.' + blob.type.substr(6)
247247
);
248248
}

common/js/plugins/jquery.fileupload/js/jquery.fileupload.js

+18-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.42.2
2+
* jQuery File Upload Plugin 5.42.3
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -277,7 +277,8 @@
277277
// The following are jQuery ajax settings required for the file uploads:
278278
processData: false,
279279
contentType: false,
280-
cache: false
280+
cache: false,
281+
timeout: 0
281282
},
282283

283284
// A list of options that require reinitializing event listeners and/or
@@ -983,7 +984,10 @@
983984
fileSet,
984985
i,
985986
j = 0;
986-
if (limitSize && (!filesLength || files[0].size === undefined)) {
987+
if (!filesLength) {
988+
return false;
989+
}
990+
if (limitSize && files[0].size === undefined) {
987991
limitSize = undefined;
988992
}
989993
if (!(options.singleFileUploads || limit || limitSize) ||
@@ -1344,18 +1348,19 @@
13441348
_initDataAttributes: function () {
13451349
var that = this,
13461350
options = this.options,
1347-
clone = $(this.element[0].cloneNode(false)),
1348-
data = clone.data();
1349-
// Avoid memory leaks:
1350-
clone.remove();
1351+
data = this.element.data();
13511352
// Initialize options set via HTML5 data-attributes:
13521353
$.each(
1353-
data,
1354-
function (key, value) {
1355-
var dataAttributeName = 'data-' +
1356-
// Convert camelCase to hyphen-ated key:
1357-
key.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
1358-
if (clone.attr(dataAttributeName)) {
1354+
this.element[0].attributes,
1355+
function (index, attr) {
1356+
var key = attr.name.toLowerCase(),
1357+
value;
1358+
if (/^data-/.test(key)) {
1359+
// Convert hyphen-ated key to camelCase:
1360+
key = key.slice(5).replace(/-[a-z]/g, function (str) {
1361+
return str.charAt(1).toUpperCase();
1362+
});
1363+
value = data[key];
13591364
if (that._isRegExpOption(key, value)) {
13601365
value = that._getRegExp(value);
13611366
}

config/config.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* Display XE's full version.
3131
*/
32-
define('__XE_VERSION__', '1.8.6');
32+
define('__XE_VERSION__', '1.8.7');
3333
define('__XE_VERSION_ALPHA__', (stripos(__XE_VERSION__, 'alpha') !== false));
3434
define('__XE_VERSION_BETA__', (stripos(__XE_VERSION__, 'beta') !== false));
3535
define('__XE_VERSION_RC__', (stripos(__XE_VERSION__, 'rc') !== false));

modules/document/document.item.php

+26-3
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,14 @@ function getExtraVars()
651651
function getExtraValue($idx)
652652
{
653653
$extra_vars = $this->getExtraVars();
654-
return $extra_vars[$idx]->getValue();
654+
if(is_array($extra_vars) && array_key_exists($idx,$extra_vars))
655+
{
656+
return $extra_vars[$idx]->getValue();
657+
}
658+
else
659+
{
660+
return '';
661+
}
655662
}
656663

657664
function getExtraValueHTML($idx)
@@ -679,7 +686,15 @@ function getExtraEidValue($eid)
679686
$extra_eid[$key->eid] = $key;
680687
}
681688
}
682-
return $extra_eid[$eid]->getValue();
689+
690+
if(is_array($extra_eid) && array_key_exists($eid,$extra_eid))
691+
{
692+
return $extra_eid[$eid]->getValue();
693+
}
694+
else
695+
{
696+
return '';
697+
}
683698
}
684699

685700
function getExtraEidValueHTML($eid)
@@ -690,7 +705,15 @@ function getExtraEidValueHTML($eid)
690705
{
691706
$extra_eid[$key->eid] = $key;
692707
}
693-
return $extra_eid[$eid]->getValueHTML();
708+
709+
if(is_array($extra_eid) && array_key_exists($eid,$extra_eid))
710+
{
711+
return $extra_eid[$eid]->getValueHTML();
712+
}
713+
else
714+
{
715+
return '';
716+
}
694717
}
695718

696719
function getExtraVarsValue($key)

0 commit comments

Comments
 (0)