Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Reconcile a test in the FTS search with its original intent in [196dfedf7fc]; reported in forum post fa13ae06d. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e88211628b529e08fc5f0c647fc789cb |
User & Date: | danield 2023-07-13 12:13:44 |
Context
2023-07-17
| ||
12:28 | Make sure query parameter "t" is marked as isFetched even if it is renamed from "r". ... (check-in: 2b72f337 user: drh tags: trunk) | |
2023-07-15
| ||
13:57 | Add verify_all_options_cgi(), which works similarly to verify_all_options() but only fails if it finds CGI GET/POST arguments which (A) have not been fetched via P(), PD(), or similar, and (B) fail cgi_value_spider_check(). Currently only applied on the /ci page. ... (check-in: a065940a user: stephan tags: verify-options-cgi) | |
2023-07-13
| ||
12:13 | Reconcile a test in the FTS search with its original intent in [196dfedf7fc]; reported in forum post fa13ae06d. ... (check-in: e8821162 user: danield tags: trunk) | |
2023-07-10
| ||
12:59 | The "fossil repack" command should run VACUUM if either new compression opportunities were found *or* if the freelist count is positive. ... (check-in: 4d9ede80 user: drh tags: trunk) | |
Changes
Changes to src/search.c.
︙ | ︙ | |||
924 925 926 927 928 929 930 | char *zPat = mprintf("%s",zPattern); int i; static const char *zSnippetCall; if( srchFlags==0 ) return; sqlite3_create_function(g.db, "rank", 1, SQLITE_UTF8|SQLITE_INNOCUOUS, 0, search_rank_sqlfunc, 0, 0); for(i=0; zPat[i]; i++){ | | | 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 | char *zPat = mprintf("%s",zPattern); int i; static const char *zSnippetCall; if( srchFlags==0 ) return; sqlite3_create_function(g.db, "rank", 1, SQLITE_UTF8|SQLITE_INNOCUOUS, 0, search_rank_sqlfunc, 0, 0); for(i=0; zPat[i]; i++){ if( (zPat[i]&0x80)==0 && !fossil_isalnum(zPat[i]) ) zPat[i] = ' '; } blob_init(&sql, 0, 0); if( search_index_type(0)==4 ){ /* If this repo is still using the legacy FTS4 search index, then ** the snippet() function is slightly different */ zSnippetCall = "snippet(ftsidx,'<mark>','</mark>',' ... ',-1,35)"; }else{ |
︙ | ︙ |