Skip to content
Snippets Groups Projects
Commit 5dcf6f48 authored by Kevin Kaland's avatar Kevin Kaland
Browse files

Issue #1392922: Revert to strlen().

drupal_strlen() appears to be returning an incorrect string length and is thus not the right
  choice in this case.
parent 47f74a08
No related branches found
No related tags found
No related merge requests found
...@@ -425,7 +425,7 @@ function fillpdf_merge_pdf($fid, $nids = NULL, $webform_arr = NULL, $sample = NU ...@@ -425,7 +425,7 @@ 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');
drupal_add_http_header('Content-Length', drupal_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');
echo $data; echo $data;
......
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