Skip to content

Commit

Permalink
Add null header value check to sanity checking for header values
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Jan 21, 2015
1 parent 07e96f4 commit dc35ec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Mime/lib/Horde/Mime/Headers/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ protected function _sanityCheck($data)
}
}

return $data;
/* Ensure no null characters exist in header data. */
return str_replace("\0", '', $data);
}

/* Static methods */
Expand Down

0 comments on commit dc35ec6

Please sign in to comment.