We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 654c73a commit e334f18Copy full SHA for e334f18
bin/tools.js
@@ -42,7 +42,7 @@ export const tools = [
42
if (typeof path !== 'string') {
43
throw new Error('Expected path to be a string')
44
}
45
- if (path.includes('..') || path.includes('~')) {
+ if (path.includes('..') || path.includes('~') || path.startsWith('/')) {
46
throw new Error('Invalid path: ' + path)
47
48
if (typeof filetype !== 'undefined' && typeof filetype !== 'string') {
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "hyperparam",
3
- "version": "0.3.0",
+ "version": "0.3.1",
4
"description": "Hyperparam CLI",
5
"author": "Hyperparam",
6
"homepage": "https://hyperparam.app",
0 commit comments