Skip to content

Commit

Permalink
Remove trailing newline from hot url (#25699)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler authored and taylorotwell committed Sep 19, 2018
1 parent aa7cec5 commit 23f259a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ function mix($path, $manifestDirectory = '')
}

if (file_exists(public_path($manifestDirectory.'/hot'))) {
$url = file_get_contents(public_path($manifestDirectory.'/hot'));
$url = rtrim(file_get_contents(public_path($manifestDirectory.'/hot')));

if (Str::startsWith($url, ['http://', 'https://'])) {
return new HtmlString(Str::after($url, ':').$path);
Expand Down

0 comments on commit 23f259a

Please sign in to comment.