mirror of https://github.com/aredn/aredn.git
Prevent any problematic character being stored in /etc/config and /etc/config.mesh (#1463)
* Remove any problematic character being stored in our config files. Any specific escaping needs to take place in context. This just stops them becoming a problem.
This commit is contained in:
parent
319b0f2153
commit
f5ef0ecd7b
|
@ -196,7 +196,7 @@ const uciMethods =
|
|||
cursor.set(a, b, c);
|
||||
}
|
||||
else {
|
||||
cursor.set(a, b, c, d);
|
||||
cursor.set(a, b, c, replace(d, "'", ""));
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -263,7 +263,7 @@ const uciMeshMethods =
|
|||
cursorm.set(a, b, c);
|
||||
}
|
||||
else {
|
||||
cursorm.set(a, b, c, d);
|
||||
cursorm.set(a, b, c, replace(d, /['<>]/g, ""));
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue