Recently I had a user send in a ticket via email that had no subject line.
 In the database, and in the email notifications the ticket's name showed as
"<no subject>".  However in GLPI, there was no text.  This made it
impossible to open the ticket and also once I did open the ticket (by
pasting it's id number into URL) , I couldn't modify the title as there was
no text to generate a link.  I figure it's because it was handeling that
text as HTML.

I wasn't sure if the preferred method is to strip the "<" and ">" when the
email is received or when it's viewed in GLPI.  Attached is a patch do the
first solution, strip "<" and ">" only if they appear in that order (so like
an HTML tag).  I did this on v0.80.2.

I also attached an image to show what I mean by no link to click on.  Ticket
"8168" has the exact name field as "<no subject>" while ticket "8169" had
the "<" and ">" stripped.

- Trey

<<attachment: Screen shot 2011-08-16 at 3.52.33 PM.png>>

Attachment: 0001-Remove-any-instances-of-a-followed-by-a-from-the-sub.patch
Description: Binary data

_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to