diff options
author | Christian Schneider | 2012-02-14 15:20:17 +0000 |
---|---|---|
committer | Christian Schneider | 2012-02-14 15:20:17 +0000 |
commit | 7189a771aec053c0e0e43d7128f72364329abf53 (patch) | |
tree | 128bc0d32eeba0b518cbf9e912ad09de21361cfc | |
parent | 8fb2ae1eeb524de9df519809243962f8bf975bcb (diff) | |
download | itools-7189a771aec053c0e0e43d7128f72364329abf53.tar.gz itools-7189a771aec053c0e0e43d7128f72364329abf53.tar.bz2 itools-7189a771aec053c0e0e43d7128f72364329abf53.zip |
Fix preg_replace to preg_replace_callable
-rw-r--r-- | it_html.class | 2 |
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']) : ""); |