summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorChristian Schneider2012-02-14 15:20:17 +0000
committerChristian Schneider2012-02-14 15:20:17 +0000
commit7189a771aec053c0e0e43d7128f72364329abf53 (patch)
tree128bc0d32eeba0b518cbf9e912ad09de21361cfc /it_html.class
parent8fb2ae1eeb524de9df519809243962f8bf975bcb (diff)
downloaditools-7189a771aec053c0e0e43d7128f72364329abf53.tar.gz
itools-7189a771aec053c0e0e43d7128f72364329abf53.tar.bz2
itools-7189a771aec053c0e0e43d7128f72364329abf53.zip
Fix preg_replace to preg_replace_callable
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index b867c0b..ba80752 100644
--- a/it_html.class
+++ b/it_html.class
@@ -505,7 +505,7 @@ function U(/* ... */)
# handle scheme, user (urlencoded), password, host
$hostpart =
- ($u['user'] ? preg_replace('|[^-a-z0-9_.+!*(),:?@&=/~$%#]|i', function($m) { return urlencode($m[0]); }, $u['user'] . ($u['pass'] ? ":" . $u['pass'] : "") . "@") : "") .
+ ($u['user'] ? preg_replace_callback('|[^-a-z0-9_.+!*(),:?@&=/~$%#]|i', function($m) { return urlencode($m[0]); }, $u['user'] . ($u['pass'] ? ":" . $u['pass'] : "") . "@") : "") .
($u['host'] ? $u['host'] : "") .
($u['port'] ? ":" . intval($u['port']) : "");