This website works better with JavaScript.
Home
Explore
Help
Sign In
p3k
/
XRay
mirror of
https://github.com/aaronpk/XRay.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
77
Wiki
Activity
Browse Source
add slash if no path is given
pull/39/head
Aaron Parecki
8 years ago
parent
0d96cb2832
commit
7b54172b87
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
);
Write
Preview
Loading…
Cancel
Save