Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Async fix #1

Merged
merged 1 commit into from

2 participants

@enygma

Correction to regex in the AsynchronousAction class.

Previous:

preg_match('%^(http(?:s)?://)(.?)(/.?)$%', $location, $matches);

Updated to:

preg_match('%^(http(?:s)?)://(.?)(/.?)$%', $location, $matches);

@softlayer softlayer merged commit 3805b6f into softlayer:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  SoftLayer/SoapClient/AsynchronousAction.class.php
View
2  SoftLayer/SoapClient/AsynchronousAction.class.php
@@ -150,7 +150,7 @@ class SoftLayer_SoapClient_AsynchronousAction
*/
public function __construct($soapClient, $functionName, $request, $location, $action)
{
- preg_match('%^(http(?:s)?://)(.*?)(/.*?)$%', $location, $matches);
+ preg_match('%^(http(?:s)?)://(.*?)(/.*?)$%', $location, $matches);
$this->_soapClient = $soapClient;
$this->_functionName = $functionName;
Something went wrong with that request. Please try again.