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 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:'){