Skip to content

Commit 4416013

Browse files
committed
Merge branch '68-support-hyphens-in-uuid'
2 parents 46fb959 + 98c8e72 commit 4416013

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

application/app/Helpers/UuidConverter.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ function id_to_uuid($id) {
55
}
66

77
function uuid_to_id($uuid) {
8+
// Strip out hyphens for better compatability with banmanager
9+
$uuid = str_replace("-","", $uuid);
810
return pack("H*", $uuid);
911
}

0 commit comments

Comments
 (0)