summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Helbling2016-05-19 18:01:58 +0200
committerChristian Helbling2016-05-19 18:01:58 +0200
commit2bb032b36bd7314c7cf478805dec4f30e5624496 (patch)
treecfe7f050c28817133d9377f8c7988137c4111ef4
parentbcc7b2610d8f0b6bf012a2086b46896fdf5bf7bd (diff)
downloaditools-2bb032b36bd7314c7cf478805dec4f30e5624496.tar.gz
itools-2bb032b36bd7314c7cf478805dec4f30e5624496.tar.bz2
itools-2bb032b36bd7314c7cf478805dec4f30e5624496.zip
fix .req debug param: did not work on urls staring with // and .req-tel matched all subrequests
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
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)