lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #55702] SSI bug


From: Stanislav
Subject: [lwip-devel] [bug #55702] SSI bug
Date: Wed, 13 Feb 2019 01:42:28 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 OPR/57.0.3098.116

Follow-up Comment #1, bug #55702 (project lwip):

This bug can be fixed by this:

            /* We found an unexpected character so this is not a tag. Move
             * back to idle state. */
            ssi->tag_state = TAG_NONE;
          }

//Add this code
#if LWIP_HTTPD_DYNAMIC_FILE_READ && !LWIP_HTTPD_SSI_INCLUDE_TAG
          if ((ssi->tag_state == TAG_NONE)&&(ssi->parsed - hs->file <
ssi->tag_index)) {
                  for(u16_t i = 0;i < ssi->tag_index;i++) {
                          ssi->tag_insert[i] = 
http_ssi_tag_desc[ssi->tag_type].lead_in[i];
                  }
                          ssi->tag_insert_len = ssi->tag_index;
                          hs->file += ssi->parsed - hs->file;
                          hs->left -= ssi->parsed - hs->file;
                          ssi->tag_end = hs->file;
                          ssi->tag_index = 0;
                          ssi->tag_state = TAG_SENDING;
                          break;
          }
#endif
          /* Move on to the next character in the buffer */
          ssi->parse_left--;
          ssi->parsed++;


    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?55702>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]