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.
There are a few problems we should definitely fix.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2284397_encrypt_codercs.patch | 12.31 KB | greggles |
Comments
Comment #1
gregglesI didn't touch encryptfapi.
I didn't touch the .test files.
There are several warnings about the order of arguments and defaults...not sure how to handle these:
We could just remove the defaults on the first arguments in that function. You can't actually use them since the $key is required.
We could also reorder the arguments, but that would require changes in other modules which I don't really want to do.
Comment #2
gregglesForgot status.
Comment #3
rlhawkThis patch looks good to me.
For the arguments: $key could be assigned a default, the way the default encryption method does it:
$op = 'encrypt', $text = '', $key = '', $options = array()
I think removing the defaults on the first arguments is a better solution, though.
Comment #5
rlhawkThis patch has been committed. I'll create a separate issue for fixing the default function arguments.