From 7189a771aec053c0e0e43d7128f72364329abf53 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 14 Feb 2012 15:20:17 +0000 Subject: Fix preg_replace to preg_replace_callable --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) : ""); -- cgit v1.2.3