openbsd-ports/sysutils/backuppc/patches/patch-lib_BackupPC_CGI_Lib_pm

13 lines
358 B
Plaintext
Raw Normal View History

$OpenBSD: patch-lib_BackupPC_CGI_Lib_pm,v 1.1.1.1 2011/09/20 11:36:55 landry Exp $
--- lib/BackupPC/CGI/Lib.pm.orig Mon Apr 25 05:31:55 2011
+++ lib/BackupPC/CGI/Lib.pm Sat Sep 17 17:21:37 2011
@@ -90,7 +90,7 @@ use vars qw($Lang);
sub NewRequest
{
- $Cgi = new CGI;
+ $Cgi = shift || new CGI;
%In = $Cgi->Vars;
if ( !defined($bpc) ) {