Ignore:
Timestamp:
01/15/10 19:44:41 (11 years ago)
Author:
alno
Message:

WebIf:

  • fix error "calling webinterface crashes if oscam.srvid not exist or has old format"
  • change: empty lines and comments with leading '#' are allowed now in oscam.srvid
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-config.c

    r1232 r1238  
    14141414        int l;
    14151415        void *ptr;
    1416         if ((l=strlen(trim(token))) < 6) continue;
     1416        char *tmp;
     1417        tmp = trim(token);
     1418
     1419        if (tmp[0] == '#') continue;
     1420        if ((l=strlen(tmp)) < 6) continue;
    14171421        if (!(payload=strchr(token, '|'))) continue;
    14181422        *payload++ = '\0';
    1419         //if (strlen(token)!=4) continue;
    14201423
    14211424        if (!(ptr = malloc(sizeof(struct s_srvid)))) {
Note: See TracChangeset for help on using the changeset viewer.