projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Left to allocate is showing wrong. Fixed by @notrinos.
[fa-stable.git]
/
includes
/
main.inc
diff --git
a/includes/main.inc
b/includes/main.inc
index bd2463f0cc549e0cbf24e4dd9941cb89c9a312d8..7b37055abc60e317c9f64a413eed964d34607ec9 100644
(file)
--- a/
includes/main.inc
+++ b/
includes/main.inc
@@
-439,7
+439,7
@@
function random_id($strength = 128)
for($i=0; $i < $n; $i++)
$bin .= chr(mt_rand(0, 255)); // Mersene Twister generator
}
- $id = strtr(base64_encode($bin), '+/
', '-_');
// see RFC 4648 Section 5
+ $id = strtr(base64_encode($bin), '+/
=', '-_x');
// see RFC 4648 Section 5
return $id;
}