2015-12-23 10:46:01 -07:00
|
|
|
|
define([], function () {
|
2014-11-04 15:43:02 -07:00
|
|
|
|
|
2015-12-23 10:46:01 -07:00
|
|
|
|
return {
|
2014-11-04 15:43:02 -07:00
|
|
|
|
|
|
|
|
|
cleanPassword: function (password) {
|
|
|
|
|
|
|
|
|
|
password = password || '';
|
|
|
|
|
|
|
|
|
|
password = replaceAll(password, "&", "&");
|
|
|
|
|
password = replaceAll(password, "/", "\");
|
|
|
|
|
password = replaceAll(password, "!", "!");
|
|
|
|
|
password = replaceAll(password, "$", "$");
|
|
|
|
|
password = replaceAll(password, "\"", """);
|
|
|
|
|
password = replaceAll(password, "<", "<");
|
|
|
|
|
password = replaceAll(password, ">", ">");
|
|
|
|
|
password = replaceAll(password, "'", "'");
|
|
|
|
|
|
|
|
|
|
return password;
|
|
|
|
|
}
|
|
|
|
|
};
|
2015-12-23 10:46:01 -07:00
|
|
|
|
});
|