You are here: Re: preg_match to detect \r\n - doesn't work « PHP Programming Language « IT news, forums, messages
Re: preg_match to detect \r\n - doesn't work

Posted by Chuck Anderson on 01/12/07 15:56

Rik wrote:
> Chuck Anderson wrote:
>
>> If I enter "subject\r\n" in the text field and click "Send Mail" the
>> output is:
>>
>> subject = subject\\r\\n
>> subject_match = 0
>>
>> ..... I don't get it?! Shouldn't that be a match?
>>
>
> The string '\r\n' != "\r\n"....
>

Okay, ... ... but I don't follow you. How does that apply?

Isn't that how someone would inject extra headers - by entering
\r\nbcc:.... (for instance)?

How do I detect that?

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*****************************

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация