Uploaded image for project: 'SonarHTML'
  1. SonarHTML
  2. SONARHTML-117

FP from S125 on Server Side Includes (SSI)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: Rules
    • Labels:

      Description

      False Positive on Server Side Includes

      Example:

      <!--#include virtual="somefile.html" -->  <!--False Positive-->
      
      <!--#if expr="${Sec_Nav}" -->  <!--False Positive-->
      <!--#include virtual="secondary_nav.txt" -->  <!--False Positive-->
      <!--#elif expr="${Pri_Nav}" -->  <!--False Positive-->
      <!--#include virtual="primary_nav.txt" -->  <!--False Positive-->
      <!--#else -->
      <!--#include virtual="article.txt" -->  <!--False Positive-->
      <!--#endif -->
      
      <!--#set var="foo" value="bar" -->  <!--False Positive-->
      
      <!--#printenv -->
      

      S125 should not raise an issue when the comment starts with a #.

      See also Apache httpd Tutorial: Introduction to Server Side Includes

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quentin.jaquier Quentin Jaquier
              Reporter:
              nicolas.harraudeau Nicolas Harraudeau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: