Skip to content

Commit 72ea2a3

Browse files
committed
the devastating colon runaway (thanks @gauntface !)
1 parent e9c7762 commit 72ea2a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebPush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private function prepareAndSend(array $notifications)
223223
elseif (array_key_exists('VAPID', $this->auth)) {
224224
$vapid = $this->auth['VAPID'];
225225

226-
$audience = parse_url($endpoint, PHP_URL_SCHEME).'//'.parse_url($endpoint, PHP_URL_HOST);
226+
$audience = parse_url($endpoint, PHP_URL_SCHEME).'://'.parse_url($endpoint, PHP_URL_HOST);
227227

228228
if (!parse_url($audience)) {
229229
throw new \ErrorException('Audience "'.$audience.'"" could not be generated.');

0 commit comments

Comments
 (0)