Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PHP doesn't need newline split anymore

  • Loading branch information...
commit dec11947336ac49572c2979af00aca1fa3fd779f 1 parent ee2752c
Jakub Korál kuba-kubula authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  php.html
2  php.html
View
@@ -13,7 +13,7 @@
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "<%= @method %>");
<% end %>
<% if @method isnt 'GET' and (@contentType is "text/html" or @contentType is "text/plain"): %>
-$fields = <%= eos %><%= "#{line}\n" for line in @body.split('\n') %>EOT;
+$fields = <%= eos %><%= @body %>EOT;
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
<% else if @body and @body.length > 0: %>
curl_setopt($ch, CURLOPT_POSTFIELDS, <%= @helpers.escape @body %>);
Please sign in to comment.
Something went wrong with that request. Please try again.