3 ms·
Why do strings like “dW5kZWZpbmVk” cause problems?
by agentofoblivion 8y ago
Why do strings like “dW5kZWZpbmVk” cause problems?
- ken 8y agoThat's the base64 version of the file.
- tshannon 8y agoThat doesn't look like anything to me...
- guessmyname 8y ago$ echo -n 'dW5kZWZpbmVk' | base64 --decode undefined Many JavaScript-based applications break when the user-input is the string “undefined”. All of the entries in this repository are encoded using Based64, for obvious reasons. If the reasons are not obvious, read the header of the repository here: > Also, do not send a null character (U+0000) string, as it changes the file > format on GitHub to binary and renders it unreadable in pull requests. To prevent unintentional breaks of GitHub’s UI, the author decided to encode the strings.