Package: dwww
Version: 1.10.9
Severity: wishlist
Tags: patch

When a documentation link is clicked in the dwww package view when
requested via SSL, the URL-Relocator dwww-convert lacks support
therefore and just replies with a plain http URL. The attached patch
extends dwww-convert to query the HTTPS envvar and act accordingly.


HTH,

Daniel Reichelt


-- debconf information excluded
--- /usr/lib/cgi-bin/dwww-org   2007-04-01 20:58:22.000000000 +0200
+++ /usr/lib/cgi-bin/dwww       2007-12-15 00:32:54.000000000 +0100
@@ -76,9 +76,11 @@
 
 elsif (($type eq "") or ($location eq "")) {
        local $port = defined $ENV{'SERVER_PORT'} ? ':' . $ENV{'SERVER_PORT'} : 
'';
-
-       print "Location: http://$ENV{'SERVER_NAME'}$port/dwww/\n\n";
-
+       if ($ENV{'HTTPS'} eq "on") {
+               print "Location: https://$ENV{'SERVER_NAME'}$port/dwww/\n\n";
+       } else {
+               print "Location: http://$ENV{'SERVER_NAME'}$port/dwww/\n\n";
+       }
 } 
 
 else {
--- /usr/share/perl5/Debian/Dwww/Utils.pm-org   2006-05-07 20:30:08.000000000 
+0200
+++ /usr/share/perl5/Debian/Dwww/Utils.pm       2007-12-15 00:32:48.000000000 
+0100
@@ -286,7 +286,11 @@
        my $port = defined $ENV{'SERVER_PORT'} ? ':' . $ENV{'SERVER_PORT'} : '';
     $url = "/$url" unless $url =~ m/^\//;
 
+    if ($ENV{'HTTPS'} eq "on") {
+       print "Location: https://$name$port$url\n\n";;
+    } else {
        print "Location: http://$name$port$url\n\n";;
+    }
 } # }}}
 
 sub RenameDir() { # {{{





-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.9-dhr (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dwww depends on:
ii  apache2-mpm-itk [httpd-cgi 2.2.3-04-3+b6 multiuser MPM for Apache 2.2
ii  debconf [debconf-2.0]      1.5.17        Debian configuration management sy
ii  debianutils                2.28.2        Miscellaneous utilities specific t
ii  doc-base                   0.8.7         utilities to manage online documen
ii  file                       4.21-3        Determines file type using "magic"
ii  libc6                      2.7-3         GNU C Library: Shared libraries
ii  libfile-ncopy-perl         0.34-1        file copying like cp for perl
ii  libmime-types-perl         1.22-1        Perl extension for determining MIM
ii  man-db                     2.5.0-4       on-line manual pager
ii  menu                       2.1.36        generates programs menu for all me
ii  mime-support               3.39-1        MIME files 'mime.types' & 'mailcap
ii  perl                       5.8.8-12      Larry Wall's Practical Extraction 

Versions of packages dwww recommends:
ii  apt                           0.7.6      Advanced front-end for dpkg
pn  dlocate                       <none>     (no description available)
ii  info2www                      1.2.2.9-23 Read info files with a WWW browser



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to