From 25aa740c2ac14faaea8af82f0efcf4a7586bb1eb Mon Sep 17 00:00:00 2001 From: Aki Goto Date: Thu, 22 Sep 2022 11:14:33 +0900 Subject: [PATCH] fix for using with FastCGI servers --- wiki.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki.pl b/wiki.pl index 8d5fab9..42614f0 100755 --- a/wiki.pl +++ b/wiki.pl @@ -424,7 +424,7 @@ sub InitRequest { } else { $CGI::DISABLE_UPLOADS = 1; # no uploads } - $q = new CGI; + $q ||= new CGI; # Fix some issues with editing UTF8 pages (if charset specified) if ($HttpCharset ne '') { $q->charset($HttpCharset);