Browse Source

Don't generate a guid shorter than 13 characters

pull/2197/head
Michael Vogel 6 years ago
parent
commit
ca4be3ded3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      boot.php

+ 1
- 1
boot.php View File

@ -1248,7 +1248,7 @@ function get_guid($size=16, $prefix = "") {
$prefix = substr($prefix, 0, $size - 22);
return(str_replace(".", "", uniqid($prefix, true)));
} else {
$prefix = substr($prefix, 0, $size - 13);
$prefix = substr($prefix, 0, max($size - 13, 0));
return(uniqid($prefix));
}
}


Loading…
Cancel
Save