Closed (works as designed)
Project:
Secure Pages Hijack Prevention
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2010 at 14:19 UTC
Updated:
13 Mar 2011 at 07:14 UTC
Hello,
attaching a patch that fixes a PHP 5.3 warning about a value passed as reference to securepages_prevent_hijack_form_alter().
Thanks,
Antonio
| Comment | File | Size | Author |
|---|---|---|---|
| securepages_prevent_hijack-php5.3--0.patch | 502 bytes | akanouras |
Comments
Comment #2
akanouras commentedUmm, are these tests failing anyway for this module?
There are calls to undefined functions and all kinds of other weirdness in there.
Comment #3
damienmckennahook_form_alter's second argument is supposed to be passed by reference, so why is the patch needed?
Comment #4
berdir- Dependencies need to be defined with 'dependencies' => array('some_module') in getInfo().
- Patch is not needed, instead, you need to figure out which module is calling hook_form_alter the wrong way. These are usually modules with ajax/ahah form elements which then use drupal_alter('form', $form, $form_state).
Comment #5
grendzy commentedclosing, per #3.