Item9957: Use of uninitialized value in foswiki.fcgi

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FastCGIEngineContrib
Branches: master
Reported By: MichaelDaum
Waiting For:
Last Change By: SvenDowideit
Use of uninitialized value in pattern match (m//) at .../bin/foswiki.fcgi line 62

Patch:
--- bin/foswiki.fcgi    (revision 9796)
+++ bin/foswiki.fcgi    (working copy)
@@ -59,7 +59,9 @@
 pod2usage(1) if $help;
 
 # untaint
-$pidfile =~ /^(.*)$/ and $pidfile = $1;
+if (defined $pidfile) {
+  $pidfile =~ /^(.*)$/ and $pidfile = $1;
+}

-- MichaelDaum - 04 Nov 2010

 
Topic revision: r6 - 08 Jun 2015, SvenDowideit - This page was cached on 04 Aug 2015 - 15:56. Get a fresh version here.
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License