joomla/joomla-1.5.9-safe_mode_disable_warnings.patch

15 lines
706 B
Diff
Raw Normal View History

diff -Nru joomla-1.5.9.org/libraries/joomla/filesystem/path.php joomla-1.5.9/libraries/joomla/filesystem/path.php
--- joomla-1.5.9.org/libraries/joomla/filesystem/path.php 2009-01-10 03:53:07.000000000 +0100
+++ joomla-1.5.9/libraries/joomla/filesystem/path.php 2009-03-26 19:17:37.000000000 +0100
@@ -244,8 +244,8 @@
{
// not a stream, so do a realpath() to avoid directory
// traversal attempts on the local file system.
- $path = realpath($path); // needed for substr() later
- $fullname = realpath($fullname);
+ @$path = realpath($path); // needed for substr() later
+ @$fullname = realpath($fullname);
}
// the substr() check added to make sure that the realpath()