When the user enters a valid Piwik URL that doesn't end in a slash, the name of the script is appended without checking if the resulting URL is valid, resulting in the following crash:

InvalidArgumentException: Unable to parse URI: http://localhost:8000piwik.php in GuzzleHttp\Psr7\Uri->__construct() (line 71 of /home/pieter/v/joinup/vendor/guzzlehttp/psr7/src/Uri.php).

Let's autofix the URL like we did in the Drupal 6 & 7 versions of the module, see #1776938: Piwik HTTP URL Validation (trailing slash).

CommentFileSizeAuthor
#2 2891105-1.patch818 bytespfrenssen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pfrenssen created an issue. See original summary.

pfrenssen’s picture

Status: Active » Needs review
FileSize
818 bytes
hass’s picture

Status: Needs review » Needs work
Issue tags: +Need tests
hass’s picture

hass’s picture

Status: Needs work » Closed (duplicate)