From: <var...@us...> - 2015-09-16 09:45:51
|
Revision: 9724 http://sourceforge.net/p/phpwiki/code/9724 Author: vargenau Date: 2015-09-16 09:45:49 +0000 (Wed, 16 Sep 2015) Log Message: ----------- Check that file to load exists Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2015-09-16 09:23:24 UTC (rev 9723) +++ trunk/lib/loadsave.php 2015-09-16 09:45:49 UTC (rev 9724) @@ -1443,6 +1443,10 @@ } } + if (!file_exists($file_or_dir)) { + $request->finish(fmt("Not existing source. Unable to load: %s", $file_or_dir)); + } + $type = filetype($file_or_dir); if ($type == 'link') { // For symbolic links, use stat() to determine This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |