Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299521

drupal_random_key() documentation for length of returned string is wrong

$
0
0

The documentation says "The base64 encoded result will have a length of up to 4 * $byte_count."

This is wrong. I think it is always exactly ceil($byte_count * 4 / 3).

Note that drupal_base64_encode() removes the padding equal signs.


Viewing all articles
Browse latest Browse all 299521

Latest Images

Trending Articles



Latest Images