<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,12 +19,13 @@ if (array_key_exists('feedback', $_REQUEST)) {
 	// suppressed@auma.pair.com or anonymous@auma.pair.com
 	// FogBugz would try to send them an email and generate another 
 	// ticket telling me &quot;Undelivered Mail Returned to Sender&quot;
-	// TODO: It'd be nice to make sure the string looks like a 
-	// real email address but I'll assume everyone is playing nice.
-	if ($_REQUEST['email'] == '') {
-        $email = 'YOUR_EMAIL_ADDRESS_HERE@gmail.com';
-	} else {
+	
+	// Check for well formatted email address, if it's OK use their address in the &quot;from&quot; header, else
+	// use generic support address
+	if (eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$', $_REQUEST['email'])) {
 	    $email = $_REQUEST['email'];
+	} else {    
+        $email = 'YOUR_EMAIL_ADDRESS_HERE@gmail.com';
     }
 	$feedback = $_REQUEST['feedback'];
 	$bundleID = $_REQUEST['bundleID'];</diff>
      <filename>jrfeedback.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>88221115a3b511eb1011fc44e6e00ca777bf4e68</id>
    </parent>
  </parents>
  <author>
    <name>Clint Shryock</name>
    <email>cshryock@deltasys.com</email>
  </author>
  <url>http://github.com/rentzsch/jrfeedbackprovider/commit/b6b1ab1e629a7be218b805f09bcba177ff6b3407</url>
  <id>b6b1ab1e629a7be218b805f09bcba177ff6b3407</id>
  <committed-date>2009-07-18T16:10:36-07:00</committed-date>
  <authored-date>2009-07-16T14:03:56-07:00</authored-date>
  <message>added regular expression to test if the email address supplied is well formed. if so, use supplied email address in the 'from' header, else use generic support email address

Signed-off-by: Jonathan 'Wolf' Rentzsch &lt;jwr.git@redshed.net&gt;</message>
  <tree>19eb1d2ed886a56e67ae377a271840d64fcb2592</tree>
  <committer>
    <name>Jonathan 'Wolf' Rentzsch</name>
    <email>jwr.git@redshed.net</email>
  </committer>
</commit>
