summaryrefslogtreecommitdiff
path: root/www/amphetadesk/files/patch-lib::AmphetaDesk::WWW.pm
blob: c6c78d128b9f24527390eed432310f7c696e006a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- lib/AmphetaDesk/WWW.pm.orig	Tue Oct 29 03:30:40 2002
+++ lib/AmphetaDesk/WWW.pm	Mon Oct 10 14:16:59 2005
@@ -103,7 +103,9 @@
       $req->proxy_authorization_basic($un, $pw); }
 
    # set our referer and grab our URL.
+   if (get_setting("user_http_referer")) {
    $req->referer( get_setting("user_http_referer") );
+   }
    my $res = $ua->request($req);
 
    # did things go happily or sadly?
@@ -171,7 +173,9 @@
       $req->proxy_authorization_basic($un, $pw); }
 
    # set our referer and grab our URL.
+   if (get_setting("user_http_referer")) {
    $req->referer( get_setting("user_http_referer") );
+   }
    my $res = $ua->request($req);
 
    # did things go happily or sadly?