FSN#39763 Versie 4.17 base64_decode kapte string af bij url-safe '-' en '_'

svn path=/Slnkdwf/trunk/; revision=33070
This commit is contained in:
Jos Groot Lipman
2017-03-07 14:38:25 +00:00
parent 9dcdfc15d1
commit 206c63e187
3 changed files with 5 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ static const std::string base64_chars_urlsafe =
"0123456789-_";
static inline bool is_base64(unsigned char c) {
return (isalnum(c) || (c == '+') || (c == '/'));
return (isalnum(c) || (c == '+') || (c == '/') || (c == '-') || (c == '_'));
}
std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_len, bool padding /* = true */, bool url_safe /* = false */) {

View File

@@ -1,6 +1,6 @@
// Zorg dat versies alfabetisch altijd op elkaar volgen!
#define SLNK_MAJOR_VERSION 4
#define SLNK_MINOR_VERSION 16
#define SLNK_MINOR_VERSION 17
#define SLNK_BUILD_VERSION 0
// Define resource strings

View File

@@ -1,3 +1,6 @@
V4.17 07-03-2017
- base64_decode kapte string af bij url-safe '-' en '_'
V4.16 27-09-2016
- hex_sha1_file van niet bestaande files leidde tot Access denied