WordPress.org

Making WordPress.org

Changeset 9446


Ignore:
Timestamp:
01/31/2020 12:16:37 AM (6 months ago)
Author:
coffee2code
Message:

Browse Happy API: Consider all versions of Internet Explorer as insecure.

Props youknowriad, coffee2code.
Fixes #4863.

Location:
sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/parse.php

    r9422 r9446  
    364364    $data['upgrade']         = ( ! empty( $data['current_version'] ) && version_compare( $data['version'], $data['current_version'], '<' ) );
    365365
    366     if ( 'Internet Explorer' === $data['name'] && version_compare( $data['version'], '11', '<' ) ) {
     366    if ( 'Internet Explorer' === $data['name'] ) {
    367367        $data['insecure'] = true;
     368        $data['upgrade']  = true;
    368369    } elseif ( 'Firefox' === $data['name'] && version_compare( $data['version'], '52', '<' ) ) {
    369370        $data['insecure'] = true;
  • sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/tests/phpunit/tests/browse-happy.php

    r9421 r9446  
    825825        $parsed = browsehappy_parse_user_agent( $header );
    826826
    827         if ( 'Internet Explorer' === $parsed['name'] && version_compare( $parsed['version'], '11', '<' ) ) {
     827        if ( 'Internet Explorer' === $parsed['name'] ) {
    828828            $this->assertTrue( $parsed['insecure'] );
    829829        } elseif ( 'Firefox' === $parsed['name'] && version_compare( $parsed['version'], '52', '<' ) ) {
Note: See TracChangeset for help on using the changeset viewer.