From: Alexander Ebert Date: Wed, 17 Aug 2016 08:09:01 +0000 (+0200) Subject: Overlooked an AJAX endpoint X-Git-Tag: 3.0.0_Beta_1~714 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=26bdfb2b4d96213b5c194e378f8d1ed912f4057d;p=GitHub%2FWoltLab%2FWCF.git Overlooked an AJAX endpoint --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 2361562861..e6aeac305e 100755 --- 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();