Changeset 106

Show
Ignore:
Timestamp:
05/31/07 20:11:32 (1 year ago)
Author:
abunner
Message:

Pass the host name after a "?" to Accipiter so that ernie can substitute it in ad calls with %%query%%

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/abunner-adserver/lib/SixApart/AdEngine/Network/Accipiter.pm

    r105 r106  
    5757    # Allow targetting of individual blogs https://intranet.sixapart.com/bugs/default.asp?45529 ... this is breaking doubleclick 
    5858    my $caller_url = defined $params->{page} && defined $params->{page}->{url} ? $params->{page}->{url} : undef; 
     59    my $host = undef; 
    5960    if (defined $caller_url) { 
    6061        $caller_url =~ m|https?://([^/]*)/|; 
    61         my $host = $1; 
     62        $host = $1; 
    6263        $url .= '/URL=' . uri_escape($host); 
    6364    } 
     
    7273    } 
    7374     
     75    if (defined $host) { 
     76        $url .= "?$host"; 
     77    } 
    7478    return qq[<script src="$url" type="text/javascript"></script>]; 
    7579