Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Commit

Permalink
fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
ppetermann committed Sep 30, 2012
1 parent 8726019 commit 9baff36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Pheal.php
Expand Up @@ -33,7 +33,7 @@ class Pheal
/**
* Version container
*/
public static $version = "0.1.4";
public static $version = "0.1.5";

/**
* resource handler for curl
Expand Down Expand Up @@ -292,7 +292,7 @@ public static function request_http_curl($url,$opts)

// attach url parameters
if(count($opts))
$url .= "?" . http_build_query($opts);
$url .= "?" . http_build_query($opts,'', '&');
}

// additional headers
Expand Down Expand Up @@ -369,12 +369,12 @@ public static function request_http_file($url,$opts)
if(count($opts) && PhealConfig::getInstance()->http_post)
{
$options['http']['method'] = 'POST';
$options['http']['content'] = http_build_query($opts);
$options['http']['content'] = http_build_query($opts, '', '&');
}
// else build url parameters
elseif(count($opts))
{
$url .= "?" . http_build_query($opts);
$url .= "?" . http_build_query($opts,'','&');
}

// set track errors. needed for $php_errormsg
Expand Down
6 changes: 3 additions & 3 deletions PhealFileLog.php
@@ -1,7 +1,7 @@
<?php
/*
MIT License
Copyright (c) 2010 Daniel Hoffend
Copyright (c) 2010 - 2012 Daniel Hoffend, Peter Petermann
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down Expand Up @@ -128,11 +128,11 @@ protected function formatUrl($scope,$name,$opts)

// add post data
if(PhealConfig::getInstance()->http_post)
$url .= " DATA: ".http_build_query($opts);
$url .= " DATA: ".http_build_query($opts,'', '&');

// add data to url
elseif(count($opts))
$url .= '?' . http_build_query($opts);
$url .= '?' . http_build_query($opts, '', '&');

return $url;
}
Expand Down

0 comments on commit 9baff36

Please sign in to comment.