Fossil SCM
Cherrypick the [21af96623e6b337] change onto trunk.
Commit
5abc2430426007f561339992faef2b839c6dbc2b
Parent
f93a082391cef7b…
1 file changed
+1
-1
+1
-1
| --- src/report.c | ||
| +++ src/report.c | ||
| @@ -1115,11 +1115,11 @@ | ||
| 1115 | 1115 | if( rn ){ |
| 1116 | 1116 | db_prepare(&q, |
| 1117 | 1117 | "SELECT sqlcode FROM reportfmt WHERE rn=%d", rn); |
| 1118 | 1118 | }else{ |
| 1119 | 1119 | db_prepare(&q, |
| 1120 | - "SELECT sqlcode FROM reportfmt WHERE title='%s'", zRep); | |
| 1120 | + "SELECT sqlcode FROM reportfmt WHERE title=%Q", zRep); | |
| 1121 | 1121 | } |
| 1122 | 1122 | if( db_step(&q)!=SQLITE_ROW ){ |
| 1123 | 1123 | db_finalize(&q); |
| 1124 | 1124 | rpt_list_reports(); |
| 1125 | 1125 | fossil_fatal("unknown report format(%s)!",zRep); |
| 1126 | 1126 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -1115,11 +1115,11 @@ | |
| 1115 | if( rn ){ |
| 1116 | db_prepare(&q, |
| 1117 | "SELECT sqlcode FROM reportfmt WHERE rn=%d", rn); |
| 1118 | }else{ |
| 1119 | db_prepare(&q, |
| 1120 | "SELECT sqlcode FROM reportfmt WHERE title='%s'", zRep); |
| 1121 | } |
| 1122 | if( db_step(&q)!=SQLITE_ROW ){ |
| 1123 | db_finalize(&q); |
| 1124 | rpt_list_reports(); |
| 1125 | fossil_fatal("unknown report format(%s)!",zRep); |
| 1126 |
| --- src/report.c | |
| +++ src/report.c | |
| @@ -1115,11 +1115,11 @@ | |
| 1115 | if( rn ){ |
| 1116 | db_prepare(&q, |
| 1117 | "SELECT sqlcode FROM reportfmt WHERE rn=%d", rn); |
| 1118 | }else{ |
| 1119 | db_prepare(&q, |
| 1120 | "SELECT sqlcode FROM reportfmt WHERE title=%Q", zRep); |
| 1121 | } |
| 1122 | if( db_step(&q)!=SQLITE_ROW ){ |
| 1123 | db_finalize(&q); |
| 1124 | rpt_list_reports(); |
| 1125 | fossil_fatal("unknown report format(%s)!",zRep); |
| 1126 |