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.
While working on #2311787: Notice: Undefined index: ismobiledevice in browscap_ctools_browscap_access_ctools_access_check I noted excessive permissions on source files.
Module source normally should not have eXecutable Linux flag, attached patch corrects this.
Comment | File | Size | Author |
---|---|---|---|
remove-executable-flag-from-sources.patch | 368 bytes | dpovshed |
Comments
Comment #2
hamrant CreditAttribution: hamrant at DEWEB Studio for Drupal Ukraine Community commentedgood fix
Comment #3
millionleaves CreditAttribution: millionleaves as a volunteer and commentedThis patch broke my site due to this error in line 10 (use of isarry instead of is_array)
+ if (isarry($browser) && array_key_exists('ismobiledevice',$browser) &&
should be the following:
+ if (is_array($browser) && array_key_exists('ismobiledevice',$browser) &&
New patch attached.
Comment #4
dpovshed CreditAttribution: dpovshed as a volunteer and at Drupal Ukraine Community commented@millionleaves I believe your patch should be addressed to the issue #2311787: Notice: Undefined index: ismobiledevice in browscap_ctools_browscap_access_ctools_access_check, to the patch in comment #8 by Thomas.
In this thread I just fixing the file permissions - that's all :)