elinks on Ubuntu tells Web servers it's running on Debian

Bug #241022 reported by Matthew Paul Thomas
2
Affects Status Importance Assigned to Milestone
elinks (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: elinks

elinks in Ubuntu 8.04 sends this User-Agent: header:
    ELinks/0.11.3-5ubuntu2 (textmode; Debian; Linux 2.6.24-16-generic i686; 80x24-2)

It would make more sense for this to be
    ELinks/0.11.3-5ubuntu2 (textmode; Ubuntu; Linux 2.6.24-16-generic i686; 80x24-2)

Jorge Castro (jorge)
Changed in elinks:
status: New → Confirmed
Revision history for this message
Y Giridhar Appaji Nag (appaji) wrote :

The fix for this would be to change "Debian" to "Ubuntu" in the debian/elinks.config file.

diff --git a/debian/elinks.config b/debian/elinks.config
index 3c47096..5a0581c 100644
--- a/debian/elinks.config
+++ b/debian/elinks.config
@@ -14,4 +14,4 @@
     # %t in the string means size of the terminal
     # %b in the string means number of bars displayed by ELinks
     # Use " " if you don't want any User-Agent header to be sent at all.
- set protocol.http.user_agent = "ELinks/%v (textmode; Debian; %s; %t-%b)"
+ set protocol.http.user_agent = "ELinks/%v (textmode; Ubuntu; %s; %t-%b)"

Revision history for this message
Y Giridhar Appaji Nag (appaji) wrote :

While %v, %s etc. are replaced during build time, "Debian" / "Ubuntu" is not generated. Patch would be welcome but
including the above change in the Ubuntu diff would be the easiest thing to do, IMO.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package elinks - 0.12~pre5-1ubuntu2

---------------
elinks (0.12~pre5-1ubuntu2) karmic; urgency=low

  * debian/elinks.config: Change Debian to Ubuntu, thanks to Y Giridhar Appaji
    Nag (LP: #241022)

 -- Chuck Short <email address hidden> Mon, 19 Oct 2009 15:32:47 -0400

Changed in elinks (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.