Skip to content
Permalink
Browse files

Backported fix from 3.0 to avoid URL issues

  • Loading branch information...
thorsten committed Feb 11, 2019
1 parent ee2a754 commit ffe71c8b01171c0d5a36ec1fbb454d92adc3e7b0
Showing with 1 addition and 5 deletions.
  1. +1 −5 phpmyfaq/inc/PMF/Link.php
@@ -728,11 +728,7 @@ public function toUri()
*/
public function getCurrentUrl()
{
if (!empty($_SERVER['HTTPS'])) {
return 'https://'.$_SERVER['SERVER_NAME'].PMF_String::htmlentities($_SERVER['REQUEST_URI']);
} else {
return 'http://'.$_SERVER['SERVER_NAME'].PMF_String::htmlentities($_SERVER['REQUEST_URI']);
}
return $this->_config->getDefaultUrl().PMF_String::htmlspecialchars(substr($_SERVER['REQUEST_URI'], 1));
}
/**

0 comments on commit ffe71c8

Please sign in to comment.
You can’t perform that action at this time.