From: Rob H. <for...@us...> - 2002-02-22 22:10:34
|
Update of /cvsroot/sandweb/sandweb/bin In directory usw-pr-cvs1:/tmp/cvs-serv6076/bin Modified Files: sandweb.cgi Log Message: edit_file works again, but for some reason spaces get inserted before all lines after the first one when the file is saved. Odd. I think this existed before the latest change though, going to have to dig around to see where this unwanted space comes from. Index: sandweb.cgi =================================================================== RCS file: /cvsroot/sandweb/sandweb/bin/sandweb.cgi,v retrieving revision 1.203 retrieving revision 1.204 diff -U2 -r1.203 -r1.204 --- sandweb.cgi 22 Feb 2002 09:14:13 -0000 1.203 +++ sandweb.cgi 22 Feb 2002 22:10:31 -0000 1.204 @@ -826,5 +826,5 @@ my $filename = "@filename"; $log->debug("filename(s) : $filename"); - my $save = CGI::param('save'); + my $Submit = CGI::param('Submit'); my $username = $auth->get_username(); my $template_dir = $config->{'paths'}->{'template_dir'} || ''; @@ -987,5 +987,5 @@ elsif ( $file_command eq 'edit' ) { $log->debug("editing file : $filename"); - if ($save) { + if ($Submit) { my $file_content = CGI::param('data'), my $filename = $file->get_filename(); @@ -1001,9 +1001,11 @@ my @filename = $filename; - file( + browse_file_commit( ck_auth => $ck_auth, file_command => "view", filename => \@filename, - location => $location, + module_name => $module_name, + repo_name => $repo_name, + location => CGI::param('location'), ); } |