We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
scrape
1 parent dc406b3 commit 6817774Copy full SHA for 6817774
src/Rules/RegexpSpam.php
@@ -111,6 +111,9 @@ public static function verify( array $item ): int {
111
[
112
'rawurl' => '^http[s]?:\/\/(accounts\.)?binance\.com\/[a-zA-Z-]+\/register(-person)?\?ref=[\w]+',
113
],
114
+ [
115
+ 'useragent' => 'scrape',
116
+ ]
117
];
118
119
$quoted_author = preg_quote( $subject['author'], '/' );
@@ -154,6 +157,10 @@ public static function verify( array $item ): int {
154
157
continue;
155
158
}
156
159
160
+ if ( ! isset( $subject[ $field ] ) ) {
161
+ continue;
162
+ }
163
+
164
$subject[ $field ] = ( function_exists( 'iconv' ) ? iconv( 'utf-8', 'utf-8//TRANSLIT', $subject[ $field ] ) : $subject[ $field ] );
165
166
if ( empty( $subject[ $field ] ) ) {
0 commit comments