Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes #28

  • Loading branch information...
commit 9baff369361ff143135e0b3881d8aa3a93c640c2 1 parent 8726019
@ppetermann authored
Showing with 7 additions and 7 deletions.
  1. +4 −4 Pheal.php
  2. +3 −3 PhealFileLog.php
View
8 Pheal.php
@@ -33,7 +33,7 @@ class Pheal
/**
* Version container
*/
- public static $version = "0.1.4";
+ public static $version = "0.1.5";
/**
* resource handler for curl
@@ -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
@@ -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
View
6 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
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.