ikie-cli 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools.js +0 -1
- package/package.json +1 -1
package/dist/tools.js
CHANGED
|
@@ -538,7 +538,6 @@ function validatePathSafety(userPath) {
|
|
|
538
538
|
function validateBashCommand(command) {
|
|
539
539
|
const trimmed = command.trim();
|
|
540
540
|
const dangerousPatterns = [
|
|
541
|
-
{ pattern: /[;&|`](?!.*\bin\b.*[\"'])/g, desc: 'shell metacharacters' },
|
|
542
541
|
{ pattern: /\$\(/g, desc: 'command substitution' },
|
|
543
542
|
{ pattern: />\s*\/(?:dev|etc|proc|sys)\b/g, desc: 'system file access' },
|
|
544
543
|
];
|