Fossil SCM
Use the correct mimetype for the logo, even if the mimetype is not image/gif. Ticket [11209555c90f3b61e4].
Commit
5478f444c53114d12d850c0973e8d29ddc7c0806
Parent
c76bb6d27014f9c…
1 file changed
+1
-1
+1
-1
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -1087,11 +1087,11 @@ | ||
| 1087 | 1087 | |
| 1088 | 1088 | /* |
| 1089 | 1089 | ** WEBPAGE: setup_logo |
| 1090 | 1090 | */ |
| 1091 | 1091 | void setup_logo(void){ |
| 1092 | - const char *zMime = "image/gif"; | |
| 1092 | + const char *zMime = db_get("logo-mimetype","image/gif"); | |
| 1093 | 1093 | const char *aImg = P("im"); |
| 1094 | 1094 | int szImg = atoi(PD("im:bytes","0")); |
| 1095 | 1095 | if( szImg>0 ){ |
| 1096 | 1096 | zMime = PD("im:mimetype","image/gif"); |
| 1097 | 1097 | } |
| 1098 | 1098 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1087,11 +1087,11 @@ | |
| 1087 | |
| 1088 | /* |
| 1089 | ** WEBPAGE: setup_logo |
| 1090 | */ |
| 1091 | void setup_logo(void){ |
| 1092 | const char *zMime = "image/gif"; |
| 1093 | const char *aImg = P("im"); |
| 1094 | int szImg = atoi(PD("im:bytes","0")); |
| 1095 | if( szImg>0 ){ |
| 1096 | zMime = PD("im:mimetype","image/gif"); |
| 1097 | } |
| 1098 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -1087,11 +1087,11 @@ | |
| 1087 | |
| 1088 | /* |
| 1089 | ** WEBPAGE: setup_logo |
| 1090 | */ |
| 1091 | void setup_logo(void){ |
| 1092 | const char *zMime = db_get("logo-mimetype","image/gif"); |
| 1093 | const char *aImg = P("im"); |
| 1094 | int szImg = atoi(PD("im:bytes","0")); |
| 1095 | if( szImg>0 ){ |
| 1096 | zMime = PD("im:mimetype","image/gif"); |
| 1097 | } |
| 1098 |