[tor-bugs] #20856 [Obfuscation/BridgeDB]: BridgeDB displays "localized page" even if "en" has the highest priority

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Dec 2 01:43:41 UTC 2016


#20856: BridgeDB displays "localized page" even if "en" has the highest priority
--------------------------------------+------------------
     Reporter:  Artoria2e5            |      Owner:  isis
         Type:  defect                |     Status:  new
     Priority:  Medium                |  Milestone:
    Component:  Obfuscation/BridgeDB  |    Version:
     Severity:  Normal                |   Keywords:
Actual Points:                        |  Parent ID:
       Points:                        |   Reviewer:
      Sponsor:                        |
--------------------------------------+------------------
 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"> 聯絡資訊</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"> Contact</span></i></a>
 }}}
 )

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20856>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list