From 255675353052818d484ccaf55f4d63b40367f4a8 Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 8 Jul 2025 11:02:20 +0900 Subject: [PATCH] =?UTF-8?q?url=5Fauto=5Flink=ED=95=A8=EC=88=98=EC=97=90=20?= =?UTF-8?q?url=5Fauto=5Flink=5Fbefore=20hook=20=EC=B6=94=EA=B0=80=20#361?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index a37d0b69d..f0a8901bf 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -257,7 +257,13 @@ function url_auto_link($str) { global $g5; global $config; - + + if ($replace_str = run_replace('url_auto_link_before', '', $str)) { + return $replace_str; + } + + $ori_str = $str; + // 140326 유창화님 제안코드로 수정 // http://sir.kr/pg_lecture/461 // http://sir.kr/pg_lecture/463 @@ -290,7 +296,7 @@ function url_auto_link($str) $str = preg_replace("/\t_gt_\t/", ">", $str); */ - return run_replace('url_auto_link', $str); + return run_replace('url_auto_link', $str, $ori_str); }