From 437606a8f0e278f6ed65e41d2a6c0762ab7749d9 Mon Sep 17 00:00:00 2001 From: doge24190 <69849296+doge24190@users.noreply.github.com> Date: Fri, 22 May 2026 03:17:37 +0800 Subject: [PATCH 1/2] Ensure $param is initialized in handle function Use array_pad to ensure $param is always set. --- syntax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax.php b/syntax.php index 5ec9b5b..41a8370 100644 --- a/syntax.php +++ b/syntax.php @@ -23,7 +23,7 @@ function connectTo($mode) { $this->Lexer->addSpecialPattern('{{url>.*?}}',$mode, function handle($match, $state, $pos, Doku_Handler $handler){ $match = substr($match, 6, -2); list($url, $alt) = array_pad(explode('|',$match,2), 2, null); - list($url, $param) = explode(' ',$url,2); + list($url, $param) = array_pad(explode(' ',$url,2), 2, ''); // javascript pseudo uris allowed? if (!$this->getConf('js_ok') && substr($url,0,11) == 'javascript:'){ From d0377c97f543fa97ce4988cf41484b63f3c06809 Mon Sep 17 00:00:00 2001 From: doge24190 <69849296+doge24190@users.noreply.github.com> Date: Fri, 22 May 2026 03:22:40 +0800 Subject: [PATCH 2/2] add Chinese language support --- lang/zh/settings.php | 10 ++++++++++ plugin.info.txt | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 lang/zh/settings.php diff --git a/lang/zh/settings.php b/lang/zh/settings.php new file mode 100644 index 0000000..59fe230 --- /dev/null +++ b/lang/zh/settings.php @@ -0,0 +1,10 @@ + + */ + +// for the configuration manager +$lang['js_ok'] = '允许含有javascript的url链接'; \ No newline at end of file diff --git a/plugin.info.txt b/plugin.info.txt index 449bbca..05b3aa3 100644 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base iframe author Christopher Smith email chris@jalakai.co.uk -date 2023-08-17 +date 2026-05-22 name iframe plugin desc Allows external URLs to be loaded into an iframe in your DokuWiki page. url http://www.dokuwiki.org/plugin:iframe