\n, \r, \209 are all escape sequences.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1005
7612ce4b-ef26-0410-bec9-
ea0150e637f0
for($i = 0 ; $i < sizeof($rows) ; $i++) {
if(is_array($rows[$i]))
- fwrite($newfh, join('|', $rows[$i]) . '\n');
+ fwrite($newfh, join('|', $rows[$i]) . "\n");
}
fclose($newfh);
$userdata['lastname'] . '|' . $userdata['email'] . '|' .
$userdata['label'];
// Strip linefeeds
- $data = ereg_replace('[\r\n]', ' ', $data);
+ $data = ereg_replace("[\r\n]", ' ', $data);
// Add linefeed at end
- $data = $data . '\n';
+ $data = $data . "\n";
// Reopen file, just to be sure
$this->open(true);
'gopher://',
'news://');
- $poss_ends = array(' ', '\n', '\r', '<', '>', '.\r', '.\n', '. ',
+ $poss_ends = array(' ', "\n", "\r", '<', '>', ".\r", ".\n", '. ',
' ', ')', '(', '"', '<', '>', '.<', ']', '[', '{',
- '}', '\240');
+ '}', "\240");
$start = 0;
$target_pos = strlen($body);
// Write Attachment to file
$fp = fopen ($attachment_dir.$localfilename, "w");
fputs ($fp, decodeBody(mime_fetch_body($imapConnection, $forward_id, $message->header->entity_id), $message->header->encoding));
-
-// Don't know why these lines were included
-// fgets($imapConnection, 256);
-// fgets($imapConnection, 256);
-
fclose ($fp);
$attachments[$localfilename] = $filename;