Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30448
Modified Files:
loadsave.php
Log Message:
fixed \r\r\n with dumping on windows
Index: loadsave.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/loadsave.php,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -2 -b -p -d -r1.89 -r1.90
--- loadsave.php 24 Feb 2004 15:14:57 -0000 1.89
+++ loadsave.php 24 Feb 2004 17:09:24 -0000 1.90
@@ -191,4 +191,5 @@ function DumpToDir (&$request)
while ($page = $pages->next()) {
+ if (! $request->getArg('start_debug'))
@set_time_limit(30); // Reset watchdog.
@@ -207,5 +208,5 @@ function DumpToDir (&$request)
$data = MailifyPage($page);
- if ( !($fd = fopen("$directory/$filename", "w")) ) {
+ if ( !($fd = fopen("$directory/$filename", "wb")) ) {
$msg->pushContent(HTML::strong(fmt("couldn't open file '%s' for writing",
"$directory/$filename")));
@@ -276,5 +277,5 @@ function DumpHtmlToDir (&$request)
$data = GeneratePageasXML($template, $pagename);
- if ( !($fd = fopen("$directory/$filename", "w")) ) {
+ if ( !($fd = fopen("$directory/$filename", "wb")) ) {
$msg->pushContent(HTML::strong(fmt("couldn't open file '%s' for writing",
"$directory/$filename")));
@@ -844,6 +845,6 @@ function LoadPostFile (&$request)
/**
$Log$
- Revision 1.89 2004/02/24 15:14:57 rurban
- fixed action=upload problems on Win32, and remove Merge Edit buttons: file does not exist anymore
+ Revision 1.90 2004/02/24 17:09:24 rurban
+ fixed \r\r\n with dumping on windows
Revision 1.88 2004/02/22 23:20:31 rurban
|