Jump to content
Larry Ullman's Book Forums

DiXfz

Members
  • Posts

    1
  • Joined

  • Last visited

DiXfz's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, as topic says i'd like to ask something about spam_scrubber script. Question has to do with this line of code: $value = str_replace(array("\r" , "\n" , "%0a" , "%0d"), ' ' , $value); So , i executed this script and in the email field i added something like that: example. Email Address: example1@hotmail.com\r\nexample2@hotmail.com When the email arrives i notice that from field contains this: Email Address: example1@hotmail.com\\r\\nexample2@hotmail.com So why is this happening?Shouldnt str_replace function replace "\r","\n" symbols with a space which trim removes right after? was kinda expecting something like this in the from field: Email Address:example1@hotmail.comexample2@hotmail.com Thanks in Advance!
×
×
  • Create New...