Skip to content
Snippets Groups Projects
Commit aa235a70 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix end indicator fix

parent b9d65e9d
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ class action_plugin_safefnrecode extends DokuWiki_Action_Plugin { ...@@ -57,7 +57,7 @@ class action_plugin_safefnrecode extends DokuWiki_Action_Plugin {
if(is_dir("$dir/$file")) $this->recode("$dir/$file"); #recurse if(is_dir("$dir/$file")) $this->recode("$dir/$file"); #recurse
if(strpos('%',$file) === false) continue; # no encoding used if(strpos('%',$file) === false) continue; # no encoding used
$new = preg_replace('/(%.*?)\./','\1]',$file); # new post indicator $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 rename("$dir/$file","$dir/$new"); # rename it
} }
closedir($dh); closedir($dh);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment