Code

Ticket #1357: 1357.patch

File 1357.patch, 630 bytes (added by leo@…, 8 years ago)

Fix for the ticket

  • core/formfields.py

     
    427427            selected_html = '' 
    428428            if str(value) == str_data: 
    429429                selected_html = ' selected="selected"' 
    430             output.append('    <option value="%s"%s>%s</option>' % (escape(value), selected_html, display_name)) 
     430            output.append('    <option value="%s"%s>%s</option>' % (escape(value), selected_html, escape(display_name))) 
    431431        output.append('  </select>') 
    432432        return '\n'.join(output) 
    433433