Changeset 12231


Ignore:
Timestamp:
06/01/09 09:02:24 (4 years ago)
Author:
eko
Message:

fix broken ej.c /decompress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/ej.c

    r12223 r12231  
    103103                if (len == 3) { 
    104104                        websWrite(stream, "<input type="); 
    105                         len = 0; 
    106105                } 
    107106                return 1; 
     
    110109                if (len == 3) { 
    111110                        websWrite(stream, "<input class="); 
    112                         len = 0; 
    113111                } 
    114112                return 1; 
     
    117115                if (len == 3) { 
    118116                        websWrite(stream, "<input id="); 
    119                         len = 0; 
    120117                } 
    121118                return 1; 
     
    124121                if (len == 3) { 
    125122                        websWrite(stream, "<div class="); 
    126                         len = 0; 
    127123                } 
    128124                return 1; 
     
    131127                if (len == 3) { 
    132128                        websWrite(stream, "<div id="); 
    133                         len = 0; 
    134129                } 
    135130                return 1; 
     
    138133                if (len == 3) { 
    139134                        websWrite(stream, "<a href=\""); 
    140                         len = 0; 
    141135                } 
    142136                return 1; 
     
    145139                if (len == 3) { 
    146140                        websWrite(stream, "<option value="); 
    147                         len = 0; 
    148141                } 
    149142                return 1; 
     
    152145                if (len == 3) { 
    153146                        websWrite(stream, "<select name="); 
    154                         len = 0; 
    155147                } 
    156148                return 1; 
     
    159151                if (len == 3) { 
    160152                        websWrite(stream, "<span class="); 
    161                         len = 0; 
    162153                } 
    163154                return 1; 
     
    166157                if (len == 3) { 
    167158                        websWrite(stream, "<input name="); 
    168                         len = 0; 
    169159                } 
    170160                return 1; 
     
    173163                if (len == 3) { 
    174164                        websWrite(stream, "document.write(\""); 
    175                         len = 0; 
    176165                } 
    177166                return 1; 
     
    180169                if (len == 3) { 
    181170                        websWrite(stream, "<document."); 
    182                         len = 0; 
    183171                } 
    184172                return 1; 
     
    187175                if (len == 3) { 
    188176                        websWrite(stream, "<script type=\"text/javascript\">"); 
    189                         len = 0; 
    190177                } 
    191178                return 1; 
     
    197184{ 
    198185        void *handle = NULL; 
    199         int c; 
     186        int c, ret; 
    200187        char *pattern, *asp = NULL, *func = NULL, *end = NULL; 
    201188        int len = 0; 
     
    215202 
    216203                if (!asp && pattern[0] == '{') { 
    217                         if (decompress(stream, pattern, len)) 
     204                        ret = decompress(stream, pattern, len); 
     205                        if (ret && len == 3 ) { 
     206                                len = 0; 
     207                                continue; 
     208                        } 
     209                        if (ret) 
    218210                                continue; 
    219211                } 
     
    259251{ 
    260252        void *handle = NULL; 
    261         int c; 
     253        int c, ret; 
    262254        char *pattern, *asp = NULL, *func = NULL, *end = NULL; 
    263255        int len = 0; 
     
    281273 
    282274                if (!asp && pattern[0] == '{') { 
    283  
    284                         if (decompress(stream, pattern, len)) 
     275                        ret = decompress(stream, pattern, len); 
     276                        if (ret && len == 3 ) { 
     277                                len = 0; 
     278                                continue; 
     279                        } 
     280                        if (ret) 
    285281                                continue; 
    286282                } 
Note: See TracChangeset for help on using the changeset viewer.