Opened 22 months ago

#20856 new defect

BridgeDB displays "localized page" even if "en" has the highest priority

Reported by: Artoria2e5 Owned by: isis
Priority: Medium Milestone:
Component: Obfuscation/BridgeDB Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

BridgeDB does not correctly handle an Accept-Language that asks for English first, and then says "other languages are OK". Take this as an example:

$ curl -H 'Accept-Language: en,zh-TW;q=0.8' https://bridges.torproject.org/ | grep icon-envelope
      <i class="icon icon-large icon-envelope"><span id="footer-contact">&nbsp;聯絡資訊</span></i></a>

In this example, English has a higher priority over zh-TW, but BridgeDB still shows a zh-TW page, presumably because there is not a specific "localization" for English.

(Here is the English page:

$ curl https://bridges.torproject.org/ | grep icon-envelope
      <i class="icon icon-large icon-envelope"><span id="footer-contact">&nbsp;Contact</span></i></a>

)

Child Tickets

Change History (0)

Note: See TracTickets for help on using tickets.