fix for using with FastCGI servers

This commit is contained in:
Aki Goto
2022-09-22 11:14:33 +09:00
parent 14c06ba45d
commit 25aa740c2a

View File

@@ -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);