summaryrefslogtreecommitdiff
path: root/lib/plugins/safefnrecode
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-04-03 22:02:27 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-04-03 22:02:27 +0200
commitaa235a708b8f394fab1d95f4c5a3cf23cabffd02 (patch)
treebc7b67e291e7552bef40a3cf1d423b37a2530dec /lib/plugins/safefnrecode
parentb9d65e9d8e82713e04ebf1172d9c94fddb38df83 (diff)
downloadrpg-aa235a708b8f394fab1d95f4c5a3cf23cabffd02.tar.gz
rpg-aa235a708b8f394fab1d95f4c5a3cf23cabffd02.tar.bz2
fix end indicator fix
Diffstat (limited to 'lib/plugins/safefnrecode')
-rw-r--r--lib/plugins/safefnrecode/action.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/safefnrecode/action.php b/lib/plugins/safefnrecode/action.php
index 6d869c532..4fa5530df 100644
--- a/lib/plugins/safefnrecode/action.php
+++ b/lib/plugins/safefnrecode/action.php
@@ -57,7 +57,7 @@ class action_plugin_safefnrecode extends DokuWiki_Action_Plugin {
if(is_dir("$dir/$file")) $this->recode("$dir/$file"); #recurse
if(strpos('%',$file) === false) continue; # no encoding used
$new = preg_replace('/(%.*?)\./','\1]',$file); # new post indicator
- if(preg_match('/%[^\.]+$/',$new)) $new .= ']'; # fix end FS#2122
+ if(preg_match('/%[^\]]+$/',$new)) $new .= ']'; # fix end FS#2122
rename("$dir/$file","$dir/$new"); # rename it
}
closedir($dh);