svn: /web/doc-editor/trunk/php/ ExtJsController.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sun, 19 Jun 2011 23:22:27 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312317

Log:
Fix security issue - reported by Neal Poole

Changed paths:
    U   web/doc-editor/trunk/php/ExtJsController.php

Modified: web/doc-editor/trunk/php/ExtJsController.php
===================================================================
--- web/doc-editor/trunk/php/ExtJsController.php	2011-06-19 23:11:05 UTC (rev 312316)
+++ web/doc-editor/trunk/php/ExtJsController.php	2011-06-19 23:22:27 UTC (rev 312317)
@@ -700,6 +700,10 @@
             // $skeleton is the ful path of the file
             // It must start with this  : $appConf[$project]['skeletons.folder']

+            if( !isset($appConf[$project]['skeletons.folder']) ) {
+                return false;
+            }
+
             if( substr($skeleton, 0, strlen($appConf[$project]['skeletons.folder']) ) !=  $appConf[$project]['skeletons.folder'] ) {
                 return false;
             }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.