From 2bb032b36bd7314c7cf478805dec4f30e5624496 Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Thu, 19 May 2016 18:01:58 +0200 Subject: fix .req debug param: did not work on urls staring with // and .req-tel matched all subrequests --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_url.class b/it_url.class index b760e0d..33ceb7b 100644 --- a/it_url.class +++ b/it_url.class @@ -109,7 +109,7 @@ function get($p=null, $timeout=5) $p = array('url' => $p, 'timeout' => $timeout); $p += array('retries' => 1); - if (($filter = EDC('req')) && strstr($p['url'], it::replace(array('1' => ":"), $filter))) + if (($filter = EDC('req')) && ($filter == 1 || strstr($p['url'], "/$filter."))) ED($p['url']); if ($this instanceof it_url) -- cgit v1.2.3