diff options
author | andi <andi@splitbrain.org> | 2005-03-26 13:51:44 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-03-26 13:51:44 +0100 |
commit | eca0e1f9c70d33cd1e944fda5e8c7ac307588eef (patch) | |
tree | ed20728387111a2050dcdcbfed595e44e5bb5ed8 | |
parent | 20159574cc0359ae4b51724ee0d7841885987ba2 (diff) | |
download | rpg-eca0e1f9c70d33cd1e944fda5e8c7ac307588eef.tar.gz rpg-eca0e1f9c70d33cd1e944fda5e8c7ac307588eef.tar.bz2 |
fix for pathnames in windows (#213)
darcs-hash:20050326125144-9977f-d0f5080b8b085322057ffc87547cb214c7d33b4b.gz
-rw-r--r-- | inc/common.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/common.php b/inc/common.php index 47defb8af..72f6fde12 100644 --- a/inc/common.php +++ b/inc/common.php @@ -393,15 +393,14 @@ function wikiFN($id,$rev=''){ $id = cleanID($id); $id = str_replace(':','/',$id); if(empty($rev)){ - $fn = $conf['datadir'].'/'.$id.'.txt'; + $fn = $conf['datadir'].'/'.utf8_encodeFN($id).'.txt'; }else{ - $fn = $conf['olddir'].'/'.$id.'.'.$rev.'.txt'; + $fn = $conf['olddir'].'/'.utf8_encodeFN($id).'.'.$rev.'.txt'; if($conf['usegzip'] && !@file_exists($fn)){ //return gzip if enabled and plaintext doesn't exist $fn .= '.gz'; } } - $fn = utf8_encodeFN($fn); return $fn; } |