[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#288615: Patch file



Attaching a proper patch file for the record.
Description: Parent languages are not ordered according to Accept-Language
 When a browser send Accept-Language only with dialects - which it should not
 do - apache does not match any langague and accept all parents language with
 a 0.001 priority.
 .
 For exemple, when accepting "fr-fr,en-us;q=0.3", and having choice fr and en,
 en will be served according to LanguagePriority.
 .
 This patch improves the behaviour by using some of the original dialect weight
 when choosing a parent variant.
 .
 See original bug repport for details.
Author: Richard Atterer <atterer@debian.org>
Origin: http://bugs.debian.org/288615
Bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=54033
Bug-Debian: http://bugs.debian.org/288615
Reviewed-By: Jean-Michel Vourgère <jmv_deb@nirgal.com>
Last-Update: 2006-11-25

Index: apache2-2.2.22/modules/mappers/mod_negotiation.c
===================================================================
--- apache2-2.2.22.orig/modules/mappers/mod_negotiation.c
+++ apache2-2.2.22/modules/mappers/mod_negotiation.c
@@ -1654,7 +1654,7 @@
                             int plen = p - accs[i].name;
 
                             if (!strncmp(lang, accs[i].name, plen)) {
-                                fiddle_q = 0.001f;
+                                fiddle_q = 0.001f * accs[i].quality;
                             }
                         }
                     }

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: