summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class6
1 files changed, 6 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class
index e66dfd4..bf1e23f 100644
--- a/it_url.class
+++ b/it_url.class
@@ -238,6 +238,9 @@ 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('1' => ":", $filter)))
+ ED($p['url']);
+
if ($this instanceof it_url)
{
$url = $this;
@@ -267,6 +270,9 @@ function get($p=null, $timeout=5)
if (!$result && $p['retries'] > 0 && $url->result < 400)
$result = $url->get(array('retries' => $p['retries'] - 1) + $p);
+ if (($filter = EDC('res')) && strstr($p['url'], it::replace('1' => ":", $filter)))
+ ED($result);
+
return $result;
}