Changeset 4381
- Timestamp:
- 01/08/11 21:05:46 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-config.c
r4371 r4381 2584 2584 struct s_auth *ptr_next; 2585 2585 ptr_next = ptr->next; 2586 free(ptr); 2586 ptr->next = NULL; 2587 add_garbage(ptr); 2587 2588 ptr = ptr_next; 2588 2589 } -
trunk/oscam-http.c
r4380 r4381 1322 1322 void send_oscam_user_config_edit(struct templatevars *vars, FILE *f, struct uriparams *params, struct in_addr in) { 1323 1323 struct s_auth *account, *ptr; 1324 char user[ 128];1324 char user[sizeof(first_client->account->usr)]; 1325 1325 1326 1326 if (strcmp(getParam(params, "action"), "Save As") == 0) cs_strncpy(user, getParam(params, "newuser"), sizeof(user)/sizeof(char)); … … 1402 1402 else 1403 1403 tpl_addVar(vars, 1, "MESSAGE", "<B>Write Config failed</B><BR><BR>"); 1404 } 1405 for (account = cfg->account; account != NULL && strcmp(user, account->usr) != 0; account = account->next); 1404 // need to reget account as writing to disk changes account! 1405 for (account = cfg->account; account != NULL && strcmp(user, account->usr) != 0; account = account->next); 1406 } 1406 1407 1407 1408 tpl_addVar(vars, 0, "USERNAME", account->usr);
Note:
See TracChangeset
for help on using the changeset viewer.