It was possible to access files and directories above the virtual root
directory beginning with the same string as the root directory.
For example:
If your root directory is "/var/www/user1" it was possible to access
"/var/www/user10", "/var/www/user11" and so on.
- Updated version number to 3.0.1
- Updated Change Log
Change Log for Dev-Editor
=========================
Change Log for Dev-Editor
=========================
+Version 3.0.1 (2005-11-10):
+===========================
+
+ Accessing files above the virtual root directory:
+ -------------------------------------------------
+ It was possible to access files and directories above the virtual root
+ directory beginning with the same string as the root directory.
+ For example:
+ If your root directory is "/var/www/user1" it was possible to access
+ "/var/www/user10", "/var/www/user11" and so on.
+
Version 3.0 (2005-10-18):
=========================
Version 3.0 (2005-10-18):
=========================
-ReadMe for Dev-Editor 3.0
-=========================
+ReadMe for Dev-Editor 3.0.1
+===========================
#!C:/Programme/Perl/bin/perl.exe -w
#
#!C:/Programme/Perl/bin/perl.exe -w
#
#
# Dev-Editor's main program
#
#
# Dev-Editor's main program
#
# Path to configuration file
# Change if necessary!
# Path to configuration file
# Change if necessary!
# Some shared sub routines
#
# Author: Patrick Canterino <patrick@patshaping.de>
# Some shared sub routines
#
# Author: Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-07-23
+# Last modified: 2005-11-10
# Check if the path is above the root directory
return if(index($path,$root) != 0);
# Check if the path is above the root directory
return if(index($path,$root) != 0);
+ return if(substr($path,length($root)) && not File::Spec->file_name_is_absolute(substr($path,length($root))));