Fossil

Check-in [5478f444]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Use the correct mimetype for the logo, even if the mimetype is not image/gif. Ticket [11209555c90f3b61e4].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5478f444c53114d12d850c0973e8d29ddc7c0806
User & Date: drh 2010-11-07 23:54:42
Context
2010-11-07
23:56
Fix a typo in the <DOCTYPE> marking at the top of each webpage. Ticket [c18a77e837a66122ed19]. check-in: eea8810b user: drh tags: trunk
23:54
Use the correct mimetype for the logo, even if the mimetype is not image/gif. Ticket [11209555c90f3b61e4]. check-in: 5478f444 user: drh tags: trunk
23:51
Avoid the use of %lld to work around limitations of some windows compilers. Ticket [9d186979fc4fe8d9c] check-in: c76bb6d2 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/setup.c.

1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
  db_end_transaction(0);
}

/*
** WEBPAGE: setup_logo
*/
void setup_logo(void){
  const char *zMime = "image/gif";
  const char *aImg = P("im");
  int szImg = atoi(PD("im:bytes","0"));
  if( szImg>0 ){
    zMime = PD("im:mimetype","image/gif");
  }
  login_check_credentials();
  if( !g.okSetup ){







|







1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
  db_end_transaction(0);
}

/*
** WEBPAGE: setup_logo
*/
void setup_logo(void){
  const char *zMime = db_get("logo-mimetype","image/gif");
  const char *aImg = P("im");
  int szImg = atoi(PD("im:bytes","0"));
  if( szImg>0 ){
    zMime = PD("im:mimetype","image/gif");
  }
  login_check_credentials();
  if( !g.okSetup ){