Changeset 2030 for releases/2.1.1/system/libraries/User_agent.php
- Timestamp:
- 02/11/2008 10:16:19 AM (11 months ago)
- Files:
-
- 1 modified
-
releases/2.1.1/system/libraries/User_agent.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
releases/2.1.1/system/libraries/User_agent.php
r1911 r2030 60 60 if (empty(self::$languages) AND ! empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) 61 61 { 62 preg_match_all('/[-a-z]{2,}/i', trim($_SERVER['HTTP_ACCEPT_LANGUAGE']), self::$languages);62 self::$languages = (preg_match_all('/[-a-z]{2,}/', strtolower(trim($_SERVER['HTTP_ACCEPT_LANGUAGE'])), $matches)) ? $matches[0] : array(); 63 63 } 64 64 … … 66 66 if (empty(self::$charsets) AND ! empty($_SERVER['HTTP_ACCEPT_CHARSET'])) 67 67 { 68 preg_match_all('/[-a-z0-9]{2,}/i', trim($_SERVER['HTTP_ACCEPT_CHARSET']), self::$charsets);68 self::$charsets = (preg_match_all('/[-a-z0-9]{2,}/', strtolower(trim($_SERVER['HTTP_ACCEPT_CHARSET'])), $matches)) ? $matches[0] : array(); 69 69 } 70 70
