Skip to content

Commit

Permalink
Merge pull request #114 from moltam/fix/js-md5
Browse files Browse the repository at this point in the history
Fix incorrect md5 hash for non-English characters in javascripts

fixes #112
  • Loading branch information
moltam authored Oct 30, 2017
2 parents 63b41de + b59e696 commit 8678c0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 181 deletions.
2 changes: 1 addition & 1 deletion assets/javascripts/lajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var lajax = (function () {
if (typeof (languageItems) !== 'undefined' && typeof (languageItems.getLanguageItems) === 'function') {
var $messages = languageItems.getLanguageItems();
if (typeof ($messages) !== 'undefined') {
var hash = md5(message);
var hash = hex_md5(message);
if (typeof ($messages[hash]) !== 'undefined') {
message = $messages[hash];
}
Expand Down
188 changes: 8 additions & 180 deletions assets/javascripts/md5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8678c0e

Please sign in to comment.