Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Get the new URI logic working for Windows. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | uri-enhancement |
Files: | files | file ages | folders |
SHA1: |
0165789f08339810a42f9dc73f8660d0 |
User & Date: | drh 2013-07-23 22:28:16.140 |
Context
2013-07-23
| ||
22:28 | Get the new URI logic working for Windows. (Closed-Leaf check-in: 0165789f08 user: drh tags: uri-enhancement) | |
20:54 | Update the URI filename parser to allow (and ignore) authority names in unix and to pass the authority through to the OS on windows, as this appears to be what web-browsers are doing. (check-in: 74c12dee17 user: drh tags: uri-enhancement) | |
Changes
Changes to src/main.c.
︙ | ︙ | |||
2186 2187 2188 2189 2190 2191 2192 | ** file://localhost/xyz /xyz //localhost/xyz ** file:///c:/xyz /c:/xyz c:/xyz ** file:xyz xyz xyz ** file:/xyz /xyz /xyz ** file:c:/xyz c:/xyz c:/xyz ** file://xyz //xyz //xyz */ | > > | | | < > > < < < < | 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 | ** file://localhost/xyz /xyz //localhost/xyz ** file:///c:/xyz /c:/xyz c:/xyz ** file:xyz xyz xyz ** file:/xyz /xyz /xyz ** file:c:/xyz c:/xyz c:/xyz ** file://xyz //xyz //xyz */ iIn = 5; if( zUri[5]=='/' && zUri[6]=='/' ){ #if SQLITE_OS_WIN if( zUri[7]=='/' ){ iIn = 7; if( sqlite3_strglob("/[a-zA-Z]:/*", zUri+7)==0 ) iIn = 8; } #else iIn = 7; while( zUri[iIn] && zUri[iIn]!='/' ) iIn++; if( zUri[iIn]!='/' ) iIn = 5; #endif } /* Copy the filename and any query parameters into the zFile buffer. ** Decode %HH escape codes along the way. ** ** Within this loop, variable eState may be set to 0, 1 or 2, depending ** on the parsing context. As follows: |
︙ | ︙ |