From 5009bf8993fe1c2cee2cac1227c616534cb3f62e Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Mon, 30 Jun 2014 13:15:24 +0200 Subject: [PATCH] Perlism --- zones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zones.php b/zones.php index b384af5..ae96d49 100644 --- a/zones.php +++ b/zones.php @@ -15,7 +15,7 @@ header("Content-Type: application/json"); function _do_curl($method, $opts = null, $type = 'post') { global $apisid, $apiuser, $apipass, $apiip, $apiport; $method = preg_replace('/:serverid:/', $apisid, $method); - $method = preg_replace('/^\/+//', '', $method); + $method = preg_replace('/^\/+/', '', $method); $ch = curl_init(); curl_setopt($ch, CURLOPT_USERPWD, "$apiuser:$apipass");