1
0
Fork 0
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:
kirsan 2011-08-22 07:24:08 +00:00
parent 502989e6ab
commit 9814d44422

View file

@ -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;