Sonar

Greater than and less than characters should be HTML encoded

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.6
  • Fix Version/s: 1.9
  • Component/s: Source code viewer
  • Labels:
    None
  • Environment:
    Installed on Windows; Firefox 3.0.6.
  • Number of attachments :
    1

Description

When viewing code I get some warnings, one of them is:

Avoid Duplicate Literals : The String literal "" appears 5 times in this file; the first occurrence is on line 318

but it is referring to a string that is not empty - it is an HTML node. Therefore I assume that when displaying the duplicate warning (or any other that quotes the code) "greater than" and "less than" should be HTML encoded to entities.

Activity

Hide
Michal Huniewicz added a comment -

A screenshot.

Show
Michal Huniewicz added a comment - A screenshot.
Hide
Olivier Gaudin added a comment -

There is indeed an encoding issue that I reproduced

Show
Olivier Gaudin added a comment - There is indeed an encoding issue that I reproduced

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: