Commit 42e8877
quote strings (hestiacp#4537)
* quote strings
Previously if a password contained whitespace like `pass word` or shell-metacharacters like `pass&word` or `pass'word` , it would generate an invalid install command.
The code is basically just https://github.com/hestiacp/phpquoteshellarg ported to javascript.
---------
Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>1 parent 1e13c17 commit 42e8877
File tree
2 files changed
+7
-2
lines changed- docs/.vitepress/theme/components
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
| |||
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
119 | | - | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
0 commit comments