mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-29 04:55:02 +03:00
В метод SetResponseAjax добавлен третий параметр , позволяющий отключать проверку LS_SECURITY_KEY
This commit is contained in:
parent
502989e6ab
commit
9814d44422
|
@ -404,7 +404,7 @@ class ModuleViewer extends Module {
|
||||||
*
|
*
|
||||||
* @param unknown_type $sResponseAjax
|
* @param unknown_type $sResponseAjax
|
||||||
*/
|
*/
|
||||||
public function SetResponseAjax($sResponseAjax='jsHttpRequest',$bResponseSpecificHeader=true) {
|
public function SetResponseAjax($sResponseAjax='jsHttpRequest',$bResponseSpecificHeader=true, $bValidate=true) {
|
||||||
/**
|
/**
|
||||||
* Проверка на безопасную обработку ajax запроса
|
* Проверка на безопасную обработку ajax запроса
|
||||||
*/
|
*/
|
||||||
|
@ -415,7 +415,7 @@ class ModuleViewer extends Module {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Для возможности кросс-доменных запросов
|
// Для возможности кросс-доменных запросов
|
||||||
if ($sResponseAjax!='jsonp') {
|
if ($sResponseAjax!='jsonp' && $bValidate) {
|
||||||
$this->Security_ValidateSendForm();
|
$this->Security_ValidateSendForm();
|
||||||
}
|
}
|
||||||
$this->sResponseAjax=$sResponseAjax;
|
$this->sResponseAjax=$sResponseAjax;
|
||||||
|
|
Loading…
Reference in a new issue