CodeSOD: An Emailed Condition |
For a change of pace, the code in this CodeSOD isnt the real WTF. Our Anonymous submitter works for a company that handles meeting scheduling for corporate customers. This entails shipping off loads of HTML-emails, and that means using a relatively terrible WYSIWYG editor that generates code like this:
Meals
All breakfasts and lunches will be served in Food Capital on the ground floor of the hotel.
We look forward to hosting you for the following dinners:
Yes, awful, but no worse than any other WYSIWYG email editor, right? Well, take a look at this particular sample:
Dietary Requirements:
*/field1/*
This particular block came to our submitters attention when they received a report that it was crashing computers. This was surprising, in part because after rigorous and thorough testing, our submitter couldnt replicate the error.
That is, until they followed up and asked the important question: What email client are you using?
Outlook, came the reply.
Obviously, theyd already tried to replicate the error in Outlook. Which version?
2007. Why, does that matter?
As it turns out, the decade old email client really doesnt like conditional comments- things like the . In fact, it hates them so much, it was crashing the users computers.
| Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |