Changeset 199

Show
Ignore:
Timestamp:
08/25/04 14:39:35 (9 years ago)
Author:
alexcv
Message:

Fixed path having two leading / instead of one

Location:
trunk/wifidog
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/ChangeLog

    r198 r199  
    11# $Header$ 
     22004-08-25 Alexandre Carmel-Veilleux <acv@acv.ca> 
     3        * src/auth.c: Path as changed in 1.26 was preceded by a /, the path already contains a / so it would yield http://host//path/ 
     4 
    252004-08-25 Benoit Gr�goire  <bock@step.polymtl.ca> 
    36        * src/auth.c:  Remove hardcoded path. 
  • trunk/wifidog/src/auth.c

    r198 r199  
    200200                client->fw_connection_state = FW_MARK_KNOWN; 
    201201                fw_allow(client->ip, client->mac, FW_MARK_KNOWN); 
    202                 _http_redirect(client->fd, "http://%s/%s/portal/?gw_id=%s", config_get_config()->auth_servers->authserv_hostname,  
    203                 config_get_config()->auth_servers->authserv_path, 
    204                 config_get_config()->gw_id); 
     202                _http_redirect(client->fd, "http://%s%s/portal/?gw_id=%s", 
     203                        config_get_config()->auth_servers->authserv_hostname,  
     204                        config_get_config()->auth_servers->authserv_path, 
     205                        config_get_config()->gw_id); 
    205206                break; 
    206207        case AUTH_VALIDATION_FAILED: