Browse Source

add slash if no path is given

pull/39/head
Aaron Parecki 8 years ago
parent
commit
7b54172b87
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      controllers/Parse.php

+ 4
- 0
controllers/Parse.php View File

@ -59,6 +59,10 @@ class Parse {
]);
}
if(parse_url($url, PHP_URL_PATH) == '') {
$url = $url . '/';
}
// Now fetch the URL and check for any curl errors
$result = $this->http->get($url);

Loading…
Cancel
Save