Browse Source

fix error when mailto links are encountered

pull/60/head
Aaron Parecki 6 years ago
parent
commit
150683e1a7
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/helpers.php

+ 2
- 1
lib/helpers.php View File

@ -11,7 +11,8 @@ function normalize_url($url) {
$parts = parse_url($url);
if(empty($parts['path']))
$parts['path'] = '/';
$parts['host'] = strtolower($parts['host']);
if(isset($parts['host']))
$parts['host'] = strtolower($parts['host']);
return build_url($parts);
}

Loading…
Cancel
Save