1. Fix warnings as reported on https://www.drupal.org/node/2387189#comment-11919113:

Warning: strpos() expects parameter 1 to be string, object given in Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() (line 347 of core/lib/Drupal/Component/Utility/UrlHelper.php).

Warning: htmlspecialchars() expects parameter 1 to be string, object given in Drupal\Component\Utility\Html::escape() (line 421 of core/lib/Drupal/Component/Utility/Html.php).

2. Fix query parameter generate after searching from block present on search/google

Comments

navneet0693 created an issue. See original summary.

navneet0693’s picture

Title: Fix PHP warnings strpos() & htmlspecialchars() on 8.x-2.x branch » Fix PHP warnings strpos() & htmlspecialchars() and fix query paramter of search/google block on 8.x-2.x branch
Issue summary: View changes

  • navneet0693 committed 1d8cbe9 on 8.x-2.x
    Issue #2850178 by navneet0693: Fix PHP warnings strpos()...

navneet0693’s picture

Status: Active » Fixed

Adding swentel in credits as he helped me solving the issue on IRC.

navneet0693’s picture

Assigned: navneet0693 » Unassigned
afinnarn’s picture

Status: Fixed » Closed (fixed)