From eca0e1f9c70d33cd1e944fda5e8c7ac307588eef Mon Sep 17 00:00:00 2001 From: andi Date: Sat, 26 Mar 2005 13:51:44 +0100 Subject: fix for pathnames in windows (#213) darcs-hash:20050326125144-9977f-d0f5080b8b085322057ffc87547cb214c7d33b4b.gz --- inc/common.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'inc') 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; } -- cgit v1.2.3