jellyfin-web/dashboard-ui/bower_components/emby-apiclient/connectservice.js

21 lines
653 B
JavaScript
Raw Normal View History

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, "<", "&lt;");
password = replaceAll(password, ">", "&gt;");
password = replaceAll(password, "'", "&#39;");
return password;
}
};
2015-12-23 10:46:01 -07:00
});