Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/URL/Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function setUrl($url)
// parse URL into respective parts
$url_components = $this->mbParseUrl($this->url);

if (! $url_components) {
if (count($url_components) === 0) {
// Reset URL
$this->url = '';

Expand Down Expand Up @@ -356,7 +356,7 @@ private function parseStr($string)

private function mbParseUrl($url)
{
$result = false;
$result = [];

// Build arrays of values we need to decode before parsing
$entities = array('%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%24', '%2C', '%2F', '%3F', '%23', '%5B', '%5D');
Expand Down