Skip to content

Commit ffb4034

Browse files
committed
fix url parsing.
1 parent a859455 commit ffb4034

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

application/config/application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
|
5555
*/
5656

57-
'profiler' => true,
57+
'profiler' => false,
5858

5959
/*
6060
|--------------------------------------------------------------------------

laravel/url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function base()
6161

6262
$base = 'http://localhost';
6363

64-
// If the application URL configuration is set, we will just use that
64+
// If the application's URL configuration is set, we will just use that
6565
// instead of trying to guess the URL from the $_SERVER array's host
6666
// and script variables as this is more reliable.
6767
if (($url = Config::get('application.url')) !== '')
@@ -72,7 +72,7 @@ public static function base()
7272
{
7373
$f = Request::foundation();
7474

75-
$base = $f->getScheme().'://'.$f->getHttpHost().$f->getBaseUrl();
75+
$base = $f->getScheme().'://'.$f->getHttpHost().$f->getBasePath();
7676
}
7777

7878
return static::$base = $base;

0 commit comments

Comments
 (0)