@@ -217,10 +217,10 @@ function plugin_gsearch_build_web($res,$target,$col)
217
217
mb_convert_variables ($ this ->cont ['SOURCE_ENCODING ' ],"UTF-8 " ,$ dats );
218
218
foreach ($ dats as $ dat )
219
219
{
220
- if ($ this ->plugin_gsearch_check_ngsite ($ dat ['url ' ])) {continue ;}
220
+ if ($ this ->plugin_gsearch_check_ngsite ($ dat ['unescapedUrl ' ])) {continue ;}
221
221
if ($ cnt ++ % $ limit === 0 && $ cnt !== 1 ) $ html .= "</ul></div> " .$ sdiv ."<ul> " ;
222
222
$ html .= "<li> " ;
223
- $ html .= "<a href=' " .$ dat ['url ' ] ."' target=' {$ target }'> " .$ dat ['titleNoFormatting ' ]."</a> " ;
223
+ $ html .= "<a href=' " .$ this -> func -> htmlspecialchars ( $ dat ['unescapedUrl ' ]) ."' target=' {$ target }'> " .$ dat ['titleNoFormatting ' ]."</a> " ;
224
224
$ html .= "<div class='quotation'> " .$ this ->func ->make_link (strip_tags ($ dat ['content ' ]))."</div> " ;
225
225
$ html .= "</li> " ;
226
226
}
@@ -250,7 +250,7 @@ function plugin_gsearch_build_images($res,$target,$col)
250
250
mb_convert_variables ($ this ->cont ['SOURCE_ENCODING ' ],"UTF-8 " ,$ dats );
251
251
foreach ($ dats as $ dat )
252
252
{
253
- if ($ this ->plugin_gsearch_check_ngsite ($ dat ['url ' ])) {continue ;}
253
+ if ($ this ->plugin_gsearch_check_ngsite ($ dat ['unescapedUrl ' ])) {continue ;}
254
254
$ title = "[ " .$ dat ['titleNoFormatting ' ]."] " .$ this ->func ->htmlspecialchars ($ dat ['contentNoFormatting ' ]);
255
255
$ size = $ dat ['width ' ]." x " .$ dat ['height ' ];
256
256
$ site = "[ <a href= \"" .$ this ->func ->htmlspecialchars ($ dat ['originalContextUrl ' ])."\" target=' {$ target }'>Site</a> ] " ;
@@ -287,9 +287,9 @@ function plugin_gsearch_build_video($res,$target,$col)
287
287
mb_convert_variables ($ this ->cont ['SOURCE_ENCODING ' ],"UTF-8 " ,$ dats );
288
288
foreach ($ dats as $ dat )
289
289
{
290
- if ($ this ->plugin_gsearch_check_ngsite ($ dat ['url ' ])) {continue ;}
290
+ if ($ this ->plugin_gsearch_check_ngsite ($ dat ['unescapedUrl ' ])) {continue ;}
291
291
$ title = "[ " .$ dat ['titleNoFormatting ' ]."] " .$ this ->func ->htmlspecialchars ($ dat ['contentNoFormatting ' ]);
292
- $ site = " [ <a href= \"" .$ this ->func ->htmlspecialchars ($ dat ['url ' ])."\" target=' {$ target }'>Site</a> ] " ;
292
+ $ site = " [ <a href= \"" .$ this ->func ->htmlspecialchars ($ dat ['unescapedUrl ' ])."\" target=' {$ target }'>Site</a> ] " ;
293
293
$ min = (int )($ dat ['duration ' ] / 60 );
294
294
$ sec = sprintf ("%02d " ,($ dat ['duration ' ] % 60 ));
295
295
$ length = $ min .": " .$ sec ;
0 commit comments