Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lang/zh/settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
/**
* Chinese language file
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author doge24190 <me@doge24190.top>
*/

// for the configuration manager
$lang['js_ok'] = '允许含有javascript的url链接';
2 changes: 1 addition & 1 deletion plugin.info.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:'){
Expand Down