Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Replace $HTTP_HOST with $_SERVER["SERVER_NAME"]
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
  • Loading branch information
Etienne CHAMPETIER committed Dec 2, 2013
1 parent 3a6063d commit d42674a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/auth.radius/class.radiusAuthDriver.php
Expand Up @@ -84,7 +84,7 @@ public function prepareRequest($res, $login, $pass, $seed)
AJXP_Logger::debug("RADIUS: Could not create request (" . radius_strerror($res) . ")");
return false;
}
if (!radius_put_string($res, RADIUS_NAS_IDENTIFIER, isset($HTTP_HOST) ? $HTTP_HOST : 'localhost')) {
if (!radius_put_string($res, RADIUS_NAS_IDENTIFIER, isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : 'localhost')) {
AJXP_Logger::debug("RADIUS: Could not put string for nas_identifier (" . radius_strerror($res) . ")");
return false;
}
Expand Down

0 comments on commit d42674a

Please sign in to comment.