Fossil SCM

Fix a crash bug that comes up when trying to view the history of files whose names contain charaters that require URL escapes. This is a cherry-pick of [65f495bc06767] which was committed to the wrong branch.

drh 2012-10-21 00:54 trunk
Commit 9c6f9e7a8c18a11ec7588a46eac52b36cca654f3
1 file changed +2 -2
+2 -2
--- src/finfo.c
+++ src/finfo.c
@@ -289,14 +289,14 @@
289289
if( (n = atoi(PD("n","0")))>0 ){
290290
blob_appendf(&sql, " LIMIT %d", n);
291291
url_add_parameter(&url, "n", P("n"));
292292
}
293293
if( firstChngOnly ){
294
- style_submenu_element("Full", "Show all changes",
294
+ style_submenu_element("Full", "Show all changes","%s",
295295
url_render(&url, "fco", "0", 0, 0));
296296
}else{
297
- style_submenu_element("Simplified", "Show only first use of a change",
297
+ style_submenu_element("Simplified", "Show only first use of a change","%s",
298298
url_render(&url, "fco", "1", 0, 0));
299299
}
300300
db_prepare(&q, blob_str(&sql));
301301
blob_reset(&sql);
302302
blob_zero(&title);
303303
--- src/finfo.c
+++ src/finfo.c
@@ -289,14 +289,14 @@
289 if( (n = atoi(PD("n","0")))>0 ){
290 blob_appendf(&sql, " LIMIT %d", n);
291 url_add_parameter(&url, "n", P("n"));
292 }
293 if( firstChngOnly ){
294 style_submenu_element("Full", "Show all changes",
295 url_render(&url, "fco", "0", 0, 0));
296 }else{
297 style_submenu_element("Simplified", "Show only first use of a change",
298 url_render(&url, "fco", "1", 0, 0));
299 }
300 db_prepare(&q, blob_str(&sql));
301 blob_reset(&sql);
302 blob_zero(&title);
303
--- src/finfo.c
+++ src/finfo.c
@@ -289,14 +289,14 @@
289 if( (n = atoi(PD("n","0")))>0 ){
290 blob_appendf(&sql, " LIMIT %d", n);
291 url_add_parameter(&url, "n", P("n"));
292 }
293 if( firstChngOnly ){
294 style_submenu_element("Full", "Show all changes","%s",
295 url_render(&url, "fco", "0", 0, 0));
296 }else{
297 style_submenu_element("Simplified", "Show only first use of a change","%s",
298 url_render(&url, "fco", "1", 0, 0));
299 }
300 db_prepare(&q, blob_str(&sql));
301 blob_reset(&sql);
302 blob_zero(&title);
303

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button