Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
template.php
is assuming that $_SERVER['HTTP_USER_AGENT']
is set. That is not a safe assumption. It can result in notices.
This patch replaces the preg_match()
calls with calls to zeropoint_browser_is_ie()
which is defined the same as what it's replacing plus an empty()
check.
Comment | File | Size | Author |
---|---|---|---|
zeropoint-undefined-index-HTTP_USER_AGENT.patch | 3.38 KB | jacob.embree |
Comments
Comment #2
Florian CreditAttribution: Florian commented