Skip to content

Commit 1cd66d4

Browse files
committed
Fix. CleantalkResponse. Response text modified.
1 parent 8bc6773 commit 1cd66d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/HTTP/CleantalkResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function __construct($obj = null, $failed_urls = null)
144144
preg_replace("/.+(\*\*\*.+\*\*\*).+/", "$1", htmlspecialchars($obj->errstr)) :
145145
null;
146146
$this->stop_words = isset($obj->stop_words) ? Helper::fromUTF8($obj->stop_words, 'ISO-8859-1') : null;
147-
$this->comment = isset($obj->comment) ? $obj->comment : null;
147+
$this->comment = isset($obj->comment) ? strip_tags(Helper::fromUTF8($obj->comment, 'ISO-8859-1'), '<p><a><br>') : null;
148148
$this->blacklisted = isset($obj->blacklisted) ? $obj->blacklisted : null;
149149
$this->allow = isset($obj->allow) ? $obj->allow : 1;
150150
$this->id = isset($obj->id) ? $obj->id : null;

0 commit comments

Comments
 (0)