mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Add compile time option SQLITE_ENABLE_URI_00_ERROR. If defined, any "%00"
escape found in a URI is treated as an error. FossilOrigin-Name: e8a9bfece27e2af178a206ad6bce3f24d64e7ee4
This commit is contained in:
@ -55,6 +55,10 @@ foreach {tn uri file} {
|
||||
|
||||
ifcapable !curdir { if {$tn==3} break }
|
||||
|
||||
ifcapable uri_00_error {
|
||||
if {[string first %00 $uri]>=0} continue
|
||||
}
|
||||
|
||||
if {$tcl_platform(platform)=="windows"} {
|
||||
#
|
||||
# NOTE: Due to limits on legal characters for file names imposed by
|
||||
@ -124,6 +128,10 @@ foreach {tn uri kvlist} {
|
||||
14 http:test.db?hello&world {}
|
||||
} {
|
||||
|
||||
ifcapable uri_00_error {
|
||||
if {[string first %00 $uri]>=0} continue
|
||||
}
|
||||
|
||||
if {$tcl_platform(platform) == "windows" && $tn>12} {
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user