Overlooked an AJAX endpoint
authorAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2016 08:09:01 +0000 (10:09 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2016 08:09:01 +0000 (10:09 +0200)
wcfsetup/install/files/js/WCF.js

index 2361562861eb024ed11a99471eca5ecacad6d70f..e6aeac305e697c449ed8574825bdfdbbe1bf5388 100755 (executable)
@@ -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();