Index: trunk/phase3/includes/WebRequest.php |
— | — | @@ -962,7 +962,7 @@ |
963 | 963 | |
964 | 964 | // Break up string into pieces (languages and q factors) |
965 | 965 | $lang_parse = null; |
966 | | - preg_match_all( '/([a-z]{1,8}(-[a-z]{1,8})?|\*)\s*(;\s*q\s*=\s*(1|0(\.[0-9]+)?)?)?/', |
| 966 | + preg_match_all( '/([a-z]{1,8}(-[a-z]{1,8})*|\*)\s*(;\s*q\s*=\s*(1(\.0{0,3})?|0(\.[0-9]{0,3})?)?)?/', |
967 | 967 | $acceptLang, $lang_parse ); |
968 | 968 | |
969 | 969 | if ( !count( $lang_parse[1] ) ) { |