Fossil SCM
Fix incorrect encoding of hyperlinks in search results.
Commit
9dba92f4a82c78c57910bdba0ae611d87b79eeb8
Parent
08cbc7b2e4fc2f6…
1 file changed
+2
-2
+2
-2
| --- src/search.c | ||
| +++ src/search.c | ||
| @@ -998,11 +998,11 @@ | ||
| 998 | 998 | const char *zLabel = db_column_text(&q, 2); |
| 999 | 999 | if( nRow==0 ){ |
| 1000 | 1000 | @ <ol> |
| 1001 | 1001 | } |
| 1002 | 1002 | nRow++; |
| 1003 | - @ <li><p><a href='%R%T(zUrl)'>%h(zLabel)</a> | |
| 1003 | + @ <li><p><a href='%R%s(zUrl)'>%h(zLabel)</a> | |
| 1004 | 1004 | if( fDebug ){ |
| 1005 | 1005 | @ (%e(db_column_double(&q,3)), %s(db_column_text(&q,4)) |
| 1006 | 1006 | } |
| 1007 | 1007 | @ <br /><span class='snippet'>%z(cleanSnippet(zSnippet))</span></li> |
| 1008 | 1008 | } |
| @@ -1051,11 +1051,11 @@ | ||
| 1051 | 1051 | }else{ |
| 1052 | 1052 | zDisable1 = " autofocus"; |
| 1053 | 1053 | zDisable2 = ""; |
| 1054 | 1054 | zPattern = PD("s",""); |
| 1055 | 1055 | } |
| 1056 | - @ <form method='GET' action='%R/%t(g.zPath)'> | |
| 1056 | + @ <form method='GET' action='%R/%T(g.zPath)'> | |
| 1057 | 1057 | if( zClass ){ |
| 1058 | 1058 | @ <div class='searchForm searchForm%s(zClass)'> |
| 1059 | 1059 | }else{ |
| 1060 | 1060 | @ <div class='searchForm'> |
| 1061 | 1061 | } |
| 1062 | 1062 |
| --- src/search.c | |
| +++ src/search.c | |
| @@ -998,11 +998,11 @@ | |
| 998 | const char *zLabel = db_column_text(&q, 2); |
| 999 | if( nRow==0 ){ |
| 1000 | @ <ol> |
| 1001 | } |
| 1002 | nRow++; |
| 1003 | @ <li><p><a href='%R%T(zUrl)'>%h(zLabel)</a> |
| 1004 | if( fDebug ){ |
| 1005 | @ (%e(db_column_double(&q,3)), %s(db_column_text(&q,4)) |
| 1006 | } |
| 1007 | @ <br /><span class='snippet'>%z(cleanSnippet(zSnippet))</span></li> |
| 1008 | } |
| @@ -1051,11 +1051,11 @@ | |
| 1051 | }else{ |
| 1052 | zDisable1 = " autofocus"; |
| 1053 | zDisable2 = ""; |
| 1054 | zPattern = PD("s",""); |
| 1055 | } |
| 1056 | @ <form method='GET' action='%R/%t(g.zPath)'> |
| 1057 | if( zClass ){ |
| 1058 | @ <div class='searchForm searchForm%s(zClass)'> |
| 1059 | }else{ |
| 1060 | @ <div class='searchForm'> |
| 1061 | } |
| 1062 |
| --- src/search.c | |
| +++ src/search.c | |
| @@ -998,11 +998,11 @@ | |
| 998 | const char *zLabel = db_column_text(&q, 2); |
| 999 | if( nRow==0 ){ |
| 1000 | @ <ol> |
| 1001 | } |
| 1002 | nRow++; |
| 1003 | @ <li><p><a href='%R%s(zUrl)'>%h(zLabel)</a> |
| 1004 | if( fDebug ){ |
| 1005 | @ (%e(db_column_double(&q,3)), %s(db_column_text(&q,4)) |
| 1006 | } |
| 1007 | @ <br /><span class='snippet'>%z(cleanSnippet(zSnippet))</span></li> |
| 1008 | } |
| @@ -1051,11 +1051,11 @@ | |
| 1051 | }else{ |
| 1052 | zDisable1 = " autofocus"; |
| 1053 | zDisable2 = ""; |
| 1054 | zPattern = PD("s",""); |
| 1055 | } |
| 1056 | @ <form method='GET' action='%R/%T(g.zPath)'> |
| 1057 | if( zClass ){ |
| 1058 | @ <div class='searchForm searchForm%s(zClass)'> |
| 1059 | }else{ |
| 1060 | @ <div class='searchForm'> |
| 1061 | } |
| 1062 |