Skip to content

Commit

Permalink
Added portnumber to getBaseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed Mar 31, 2016
1 parent 9eb06c2 commit 89ab00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ public static function splitAddress($strAddress)
public static function getBaseUrl()
{
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
$url = $protocol . '://' . $_SERVER['SERVER_NAME'] .':'.$_SERVER['SERVER_PORT']. $_SERVER['REQUEST_URI'];

$url = $protocol . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];

// op de laatste / afknippen (index.php willen we niet zien)
$baseUrl = substr($url, 0, strrpos($url, '/'));
Expand Down

0 comments on commit 89ab00e

Please sign in to comment.