Skip to content

Commit 5a4e7fb

Browse files
author
davydovct
committed
Fix: Skip global hook on comments.
1 parent 2cac27f commit 5a4e7fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cleantalk.antispam/include.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ public function OnPageStartHandler()
248248
(isset($_POST['action']) && $_POST['action'] == 'saveOrderAjax') ||
249249
strpos($_SERVER['REQUEST_URI'],'/user-profile.php?update=Y')!==false ||
250250
( isset( $_SERVER['USER_AGENT'] ) && strpos( $_SERVER['USER_AGENT'], '.NET Framework' ) !== false ) ||
251-
( isset( $_SERVER['USER_AGENT'] ) && strpos( $_SERVER['USER_AGENT'], 'Bitrix Telephony Controller' ) !== false )
251+
( isset( $_SERVER['USER_AGENT'] ) && strpos( $_SERVER['USER_AGENT'], 'Bitrix Telephony Controller' ) !== false ) ||
252+
(isset($_POST['comment_post_id'], $_POST['comment'], $_POST['blog_upload_cid']))
252253
)
253254
{
254255
return;

0 commit comments

Comments
 (0)