);
}
-function safeText(str) {
- return String(str).replace(/[&<>"']/g, s => ({
- '&': '&', '<': '<', '>': '>', '"': '"', "'": '''
- }[s]));
-}
-
function saveKeyFile(keyContent, file, fileContent) {
const ts = Date.now();
// Note: opkg can only verify against a key with filename that matches its key hash
}
function isPemFormat(content) {
- return new RegExp('-BEGIN ([A-Z ]+)?PUBLIC KEY-').test(content);
+ return (/-BEGIN ([A-Z ]+)?PUBLIC KEY-/.test(content));
}
function keyEnvironmentCheck(key) {
s = m.section(form.NamedSection, 'fup');
o = s.option(form.DummyValue, '_newkey');
- o.cfgvalue = function(section_id) {
+ o.cfgvalue = function(/* section_id*/) {
const addInput = E('textarea', {
id: 'key-input',