-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Allow dictionaries with variable length an multibyte chars
The Base62UrlKeyGenerator is now an BaseXUrlKeyGenerator depending on the length of the configured dictionary. There will be no more Uninitialized string offset warnings when using a dictionary with less than 62 chars. By using mb_strlen() and mb_substr() is should now also be possible to use a dictionary containing multiby characters. Thanks to @thomashohn for reporting the issue and providing the initial pull request. Closes: #29
- Loading branch information
Showing
2 changed files
with
42 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters