Skip to content

Commit

Permalink
make case-insensitive to notification URI scheme (refs #4055)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimura Youichi committed Mar 21, 2017
1 parent 47cd193 commit 3b0783e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/lib/helper/opJsonApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function op_api_notification($notification)
// Basically, those URLs begin with relative URL root (ex. "/subdir/member/1").
$url = $notification['url'];
}
elseif (0 === strpos($notification['url'], 'http://') || 0 === strpos($notification['url'], 'https://'))
elseif (preg_match('#^https?://#i', $notification['url']))
{
$url = $notification['url'];
}
Expand Down

0 comments on commit 3b0783e

Please sign in to comment.