ZF-10766: Zend_Http_UserAgent incorrectly matches older "PPC Mac" user-agents running on PowerPC processors as Mobile

Issue Type: Bug Created: 2010-12-02T13:53:32.000+0000 Last Updated: 2010-12-02T14:15:43.000+0000 Status: Resolved Fix version(s): - 1.12.0 (27/Aug/12)

Reporter: Jared Ray (jared.ray) Assignee: Jared Ray (jared.ray) Tags: - Zend_Http_UserAgent

Related issues: - ZF-10764



Zend_Http_UserAgent_Mobile matches user-agent strings containing " ppc". This pattern incorrectly matches Macintosh desktops running on PowerPC processors. A quick and easy fix will continue to match most mobile user agents containing " ppc" because they usually have a trailing semicolon, something the Mac PowerPC user-agents do not. So adding a semicolon to the " ppc" pattern to change it to " ppc;" will produce more accurate results and will correctly NOT match Macs on PowerPC processors.

A quick "googleing" of user-agents containing " ppc" shows that all mobile user-agents with " ppc" also match " ppc;" whereas all Macs on PowerPC processors do not match " ppc;"

This search was done at:…


Posted by Jared Ray (jared.ray) on 2010-12-02T14:03:09.000+0000

This appears to have been fixed in revision:23214

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.