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

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 295161

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>