@@ -141,18 +141,18 @@ public static function dirExists($dir_path)
141141 if (!\Xmf \Request::hasVar ('path ' , 'POST ' ) || !\Xmf \Request::hasVar ('redirect ' , 'POST ' )) {
142142 break ;
143143 }
144- $ path = \Xmf \Request::getString ('path ' , 'POST ' );
145- $ redirect = \Xmf \Request::getString ('redirect ' , 'POST ' );
144+ $ path = \Xmf \Request::getString ('path ' ,'' , 'POST ' );
145+ $ redirect = \Xmf \Request::getString ('redirect ' ,'' , 'POST ' );
146146 $ msg = DirectoryChecker::createDirectory ($ path ) ? \constant ('CO_ ' . $ moduleDirNameUpper . '_ ' . 'DC_DIRCREATED ' ) : \constant ('CO_ ' . $ moduleDirNameUpper . '_ ' . 'DC_DIRNOTCREATED ' );
147147 \redirect_header ($ redirect , 2 , $ msg . ': ' . $ path );
148148 break ;
149149 case 'setdirperm ' :
150150 if (!\Xmf \Request::hasVar ('path ' , 'POST ' ) || !\Xmf \Request::hasVar ('redirect ' , 'POST ' ) || !\Xmf \Request::hasVar ('mode ' , 'POST ' )) {
151151 break ;
152152 }
153- $ path = \Xmf \Request::getString ('path ' );
154- $ redirect = \Xmf \Request::getString ('redirect ' );
155- $ mode = \Xmf \Request::getInt ('mode ' );
153+ $ path = \Xmf \Request::getString ('path ' , '' , ' POST ' );
154+ $ redirect = \Xmf \Request::getString ('redirect ' , '' , ' POST ' );
155+ $ mode = \Xmf \Request::getInt ('mode ' , '' , ' POST ' );
156156 $ msg = DirectoryChecker::setDirectoryPermissions ($ path , $ mode ) ? \constant ('CO_ ' . $ moduleDirNameUpper . '_ ' . 'DC_PERMSET ' ) : \constant ('CO_ ' . $ moduleDirNameUpper . '_ ' . 'DC_PERMNOTSET ' );
157157
158158 \redirect_header ($ redirect , 2 , $ msg . ': ' . $ path );
0 commit comments