blob: 5c27aa3465b0f7ba7f054986445ed1296885f49e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
https://sqlite.org/src/info/27291f2d7fd4dadf
--- /src/shell.c.in
+++ /src/shell.c.in
@@ -5284,7 +5284,8 @@
"SELECT "
" ($dir || name),"
" writefile(($dir || name), %s, mode, mtime) "
- "FROM %s WHERE (%s) AND (data IS NULL OR $dirOnly = 0)";
+ "FROM %s WHERE (%s) AND (data IS NULL OR $dirOnly = 0)"
+ " AND name NOT GLOB '*..[/\\]*'";
const char *azExtraArg[] = {
"sqlar_uncompress(data, sz)",
|