failure: $.proxy(this._failure, this),
showLoadingOverlay: false,
success: $.proxy(this._success, this),
- url: 'index.php?' + $actionName + '/&t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php?' + $actionName + '/&t=' + SECURITY_TOKEN
});
},
},
showLoadingOverlay: false,
success: $.proxy(this._success, this),
- url: 'index.php?worker-proxy/&t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php?worker-proxy/&t=' + SECURITY_TOKEN
});
this._title = title;
},
this._proxy = new WCF.Action.Proxy({
showLoadingOverlay: false,
success: $.proxy(this._success, this),
- url: 'index.php?worker-proxy/&t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php?worker-proxy/&t=' + SECURITY_TOKEN
});
this._redirectURL = redirectURL;
success: $.proxy(function() {
window.location = this._redirectURL;
}, this),
- url: 'index.php?cache-clear/&t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php?cache-clear/&t=' + SECURITY_TOKEN
});
}, this)).appendTo($form);
className: 'wcf\\system\\importer\\ImportHandler'
},
success: function() { window.location.reload(); },
- url: 'index.php/AJAXInvoke/?t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php/AJAXInvoke/?t=' + SECURITY_TOKEN
});
}
});
<div class="formSubmit">
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
- {@SID_INPUT_TAG}
</div>
</form>
{/if}
<div class="formSubmit">
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
- {@SID_INPUT_TAG}
{@SECURITY_TOKEN_INPUT_TAG}
</div>
</form>
<div class="formSubmit">
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
- {@SID_INPUT_TAG}
{@SECURITY_TOKEN_INPUT_TAG}
</div>
</form>
</section>
<div class="formSubmit">
- {@SID_INPUT_TAG}
<input type="hidden" name="id" value="{$templateID}" />
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
</div>
this._proxy = new WCF.Action.Proxy({
showLoadingOverlay: false,
success: $.proxy(this._success, this),
- url: 'index.php/MessageQuote/?t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php/MessageQuote/?t=' + SECURITY_TOKEN
});
this._toggleShowQuotes();
this._polls = { };
this._proxy = new WCF.Action.Proxy({
success: $.proxy(this._success, this),
- url: 'index.php/Poll/?t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php/Poll/?t=' + SECURITY_TOKEN
});
// init polls
success: null,
suppressErrors: false,
type: 'POST',
- url: 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN + SID_ARG_2ND,
+ url: 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN
aborted: null,
autoAbortPrevious: false
}, options);
this._options = $.extend(true, {
action: 'upload',
multiple: false,
- url: 'index.php/AJAXUpload/?t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php/AJAXUpload/?t=' + SECURITY_TOKEN
}, options || { });
this._options.url = WCF.convertLegacyURL(this._options.url);
options.pinData = true;
options.callbackObject = callbackObject;
- if (!options.url) options.url = 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN + SID_ARG_2ND;
+ if (!options.url) options.url = 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN
request = new AjaxRequest(options);
// is true if every file from a multi-file selection is uploaded in its own request
singleFileRequests: false,
// url for uploading file
- url: 'index.php/AJAXUpload/?t=' + SECURITY_TOKEN + SID_ARG_2ND
+ url: 'index.php/AJAXUpload/?t=' + SECURITY_TOKEN
}, options);
this._options.url = WCF.convertLegacyURL(this._options.url);
$application = $statement->fetchObject('wcf\data\application\Application');
// build redirect location
- $location = $application->getPageURL() . 'acp/index.php?package-list/' . SID_ARG_2ND_NOT_ENCODED;
+ $location = $application->getPageURL() . 'acp/index.php?package-list/';
WCF::resetZendOpcache();
$application = $statement->fetchObject('wcf\data\application\Application');
// build redirect location
- $location = $application->getPageURL() . 'acp/index.php?package-list/' . SID_ARG_2ND_NOT_ENCODED;
+ $location = $application->getPageURL() . 'acp/index.php?package-list/';
// show success
$this->data = array(
$this->saved();
if (!empty($this->url)) {
- // append session
- if (mb_strpos($this->url, '?') !== false) $this->url .= SID_ARG_2ND_NOT_ENCODED;
- else $this->url .= SID_ARG_1ST;
HeaderUtil::redirect($this->url);
}
else {
if (RequestHandler::getInstance()->inRescueMode()) {
- $path = RouteHandler::getHost() . RouteHandler::getPath() . SID_ARG_1ST;
+ $path = RouteHandler::getHost() . RouteHandler::getPath();
}
else {
$application = ApplicationHandler::getInstance()->getActiveApplication();
- $path = $application->getPageURL() . 'acp/' . SID_ARG_1ST;
+ $path = $application->getPageURL() . 'acp/';
}
HeaderUtil::redirect($path);
if (empty($this->url) || mb_stripos($this->url, '?Login/') !== false) {
$this->url = LinkHandler::getInstance()->getLink();
}
- // append missing session id
- else if (SID_ARG_1ST != '' && !preg_match('/(?:&|\?)s=[a-z0-9]{40}/', $this->url)) {
- if (mb_strpos($this->url, '?') !== false) $this->url .= SID_ARG_2ND_NOT_ENCODED;
- else $this->url .= SID_ARG_1ST;
- }
// drop index.php
if (!URL_LEGACY_MODE) {
// drop session id
$redirectURI = preg_replace('~[&\?]s=[a-f0-9]{40}(&|$)~', '', WCF::getSession()->requestURI);
- $path = $application->getPageURL() . 'acp/index.php?login/' . SID_ARG_2ND_NOT_ENCODED . '&url=' . rawurlencode(RouteHandler::getProtocol() . $_SERVER['HTTP_HOST'] . $redirectURI);
+ $path = $application->getPageURL() . 'acp/index.php?login/&url=' . rawurlencode(RouteHandler::getProtocol() . $_SERVER['HTTP_HOST'] . $redirectURI);
HeaderUtil::redirect($path);
exit;
}
/**
- * Sets the target url, by default appends appropriate session id.
+ * Sets the target url.
* May be left empty to disable url functionality.
*
* @param string $url
- * @param boolean $appendSession
+ * @param boolean $appendSession This parameter is unused as of WCF 2.2
*/
public function setURL($url, $appendSession = false) {
- // append session id
- if ($appendSession) {
- if (mb_strpos($url, '?') === false) {
- $url .= SID_ARG_1ST;
- }
- else {
- $url .= SID_ARG_2ND_NOT_ENCODED;
- }
- }
-
$this->url = $url;
}
<form method="get" action="{@RELATIVE_WCF_DIR}acp/index.php">
<div class="formSubmit">
- {@SID_INPUT_TAG}
<input type="hidden" name="action" value="WCFSetup" />
</div>
</form>