projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1412164
)
Overlooked an AJAX endpoint
author
Alexander Ebert
<ebert@woltlab.com>
Wed, 17 Aug 2016 08:09:01 +0000
(10:09 +0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Wed, 17 Aug 2016 08:09:01 +0000
(10:09 +0200)
wcfsetup/install/files/js/WCF.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.js
b/wcfsetup/install/files/js/WCF.js
index 2361562861eb024ed11a99471eca5ecacad6d70f..e6aeac305e697c449ed8574825bdfdbbe1bf5388 100755
(executable)
--- a/
wcfsetup/install/files/js/WCF.js
+++ b/
wcfsetup/install/files/js/WCF.js
@@
-6013,6
+6013,9
@@
WCF.Upload = Class.extend({
}, options || { });
this._options.url = WCF.convertLegacyURL(this._options.url);
+ if (this._options.url.indexOf('index.php') === 0) {
+ this._options.url = WSC_API_URL + this._options.url;
+ }
// check for ajax upload support
var $xhr = new XMLHttpRequest();