Skip to content
Snippets Groups Projects
Commit a036f30c authored by Liam Morland's avatar Liam Morland Committed by Kevin Kaland
Browse files

Issue #1392922: Explain why strlen() is used.

parent fd392fd5
No related branches found
No related tags found
No related merge requests found
...@@ -425,6 +425,8 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU ...@@ -425,6 +425,8 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU
drupal_add_http_header('Expires', 0); drupal_add_http_header('Expires', 0);
drupal_add_http_header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0'); drupal_add_http_header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0');
drupal_add_http_header('Content-type', 'application-download'); drupal_add_http_header('Content-type', 'application-download');
// This must be strlen(), not drupal_strlen() because the length in bytes,
// not in characters, is what is needed here.
drupal_add_http_header('Content-Length', strlen($data)); drupal_add_http_header('Content-Length', strlen($data));
drupal_add_http_header('Content-disposition', 'attachment; filename="' . $output_name . '"'); drupal_add_http_header('Content-disposition', 'attachment; filename="' . $output_name . '"');
drupal_add_http_header('Content-Transfer-Encoding', 'binary'); drupal_add_http_header('Content-Transfer-Encoding', 'binary');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment