pcanterino [Mon, 30 Mar 2009 17:17:57 +0000 (17:17 +0000)]
Allow to specify a remote name for an uploaded file
pcanterino [Fri, 25 Apr 2008 14:25:19 +0000 (14:25 +0000)]
If "*" was supplied as a DOS wildcard, don't convert it to an ordinary regex,
just check if it is "*" and return 1 if so.
pcanterino [Sat, 14 Oct 2006 19:59:53 +0000 (19:59 +0000)]
"Revert" sounds better than "discard"
pcanterino [Sun, 3 Sep 2006 15:22:57 +0000 (15:22 +0000)]
Changed this very stupid "edit_file_changed" error message
pcanterino [Thu, 24 Aug 2006 19:48:37 +0000 (19:48 +0000)]
Trying to simplify some of Dev-Editor's functions:
If you want to copy or rename/move a file or a directory or save a file using a
different name, the form field for the new filename is prefilled with the old
one. Additionally, the entered path is no more relative to the directory of the
original file.
pcanterino [Thu, 10 Nov 2005 17:40:44 +0000 (17:40 +0000)]
- Fixed a security problem:
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
pcanterino [Tue, 18 Oct 2005 12:10:10 +0000 (12:10 +0000)]
Forgot to remove " (CVS)"
pcanterino [Tue, 18 Oct 2005 12:07:20 +0000 (12:07 +0000)]
- Changed version number to 3.0
- Updated Change Log
pcanterino [Fri, 30 Sep 2005 20:15:25 +0000 (20:15 +0000)]
Wrote documentation for creating an user-dependent configuration
pcanterino [Fri, 30 Sep 2005 17:17:36 +0000 (17:17 +0000)]
*wargl*
It happens again and again...
pcanterino [Fri, 30 Sep 2005 17:16:32 +0000 (17:16 +0000)]
You can now define alias names for users who have an individual configuration,
so you don't need to define an individual sections for users with the same
configuration any more.
pcanterino [Thu, 1 Sep 2005 17:02:47 +0000 (17:02 +0000)]
Changed the "continue" checkbox to a separate submit button
pcanterino [Thu, 25 Aug 2005 11:35:17 +0000 (11:35 +0000)]
- Now, Dev-Editor is able to switch some configuration values depending on the
current HTTP Auth user.
This is controlled by a separate configuration file that contains sections
like Windows INI files (thus the configuration file parser is now able to
parse files containing sections in square brackets).
You may overwrite the following configuration values:
- fileroot
- httproot
- forbidden (you may also clear the default "forbidden" list)
- Fixed a bug occuring if the user placed an empty "forbidden" configuration
option in the main configuration file. In this case we create an empty Array
Reference.
- Fixed an error in an {IF} block in dirlist_dir.htm
pcanterino [Mon, 15 Aug 2005 14:25:34 +0000 (14:25 +0000)]
Preserve the directory listing filter if the user changes the directory using
the input field at the bottom of the directory listing
pcanterino [Mon, 1 Aug 2005 09:18:25 +0000 (09:18 +0000)]
- Fixed the prototype problem of dir_copy() in File::Access
- Added some notes about the problems of the feature of copying a whole
directory
- Added some notes about my incompetence
- In the edit dialogue, there is a new checkbox allowing to continue editing the
file after saving it
pcanterino [Sat, 23 Jul 2005 16:44:43 +0000 (16:44 +0000)]
Restored the version of check_path() found in revision 1.34 of Tool.pm
pcanterino [Sat, 23 Jul 2005 11:52:16 +0000 (11:52 +0000)]
Changing the mode of inaccessible directories works again
pcanterino [Wed, 6 Jul 2005 19:47:14 +0000 (19:47 +0000)]
Whoops...
pcanterino [Wed, 6 Jul 2005 15:41:39 +0000 (15:41 +0000)]
Fixed a small typo
pcanterino [Wed, 6 Jul 2005 14:36:34 +0000 (14:36 +0000)]
Implemented experimental feature of copying a whole directory.
Currently the target the user wants to copy the directory to must not exist.
I hope I will be able to change this in future.
pcanterino [Sun, 19 Jun 2005 19:46:15 +0000 (19:46 +0000)]
Describe the possibility of using comments in configuration files
pcanterino [Sun, 19 Jun 2005 10:09:34 +0000 (10:09 +0000)]
Finished documentation of the configuration directive "forbidden"
pcanterino [Tue, 14 Jun 2005 14:58:39 +0000 (14:58 +0000)]
Again: Forgot to encode HTML in some more strings...
pcanterino [Tue, 14 Jun 2005 14:53:10 +0000 (14:53 +0000)]
- Changed a comment in devedit.pl
- Fixed a typo in errors.conf
pcanterino [Tue, 14 Jun 2005 12:22:16 +0000 (12:22 +0000)]
Forgot to encode HTML in some more strings...
pcanterino [Tue, 14 Jun 2005 12:02:59 +0000 (12:02 +0000)]
Forgot to encode HTML in some strings
pcanterino [Fri, 10 Jun 2005 12:38:36 +0000 (12:38 +0000)]
- Dev-Editor is now able to forbid accessing a file using the configuration file
- Added ReadMe file, Change Log and a copy of the Artistic License to the
repository
pcanterino [Sun, 29 May 2005 11:04:37 +0000 (11:04 +0000)]
Removed some spaces
pcanterino [Thu, 26 May 2005 13:47:35 +0000 (13:47 +0000)]
Removed space
pcanterino [Wed, 25 May 2005 14:22:01 +0000 (14:22 +0000)]
Added checkboxes for allowing to overwrite an existing file immediately
pcanterino [Sun, 15 May 2005 12:27:20 +0000 (12:27 +0000)]
Removed confirm_unlock template file
pcanterino [Sun, 15 May 2005 09:41:04 +0000 (09:41 +0000)]
Removed the JavaScript code which prevents users from marking text in the
textarea containing the Artistic License.
I added this code for browsers not supporting the readonly attribute, but that
is not a good solution.
pcanterino [Sun, 15 May 2005 09:21:11 +0000 (09:21 +0000)]
- Before changing the permissions of a file, check if the user entered a valid
octal number
- Changed the name of the error message "dir_read_fail" to "dir_read_failed"
pcanterino [Sat, 7 May 2005 20:26:56 +0000 (20:26 +0000)]
Simplified check_path() a little bit
pcanterino [Thu, 5 May 2005 15:21:26 +0000 (15:21 +0000)]
Whoops...
pcanterino [Thu, 5 May 2005 15:18:22 +0000 (15:18 +0000)]
- Changed names of some {IF} blocks (make use of negations)
- Don't show the "Copy" link if a file is not readable
pcanterino [Thu, 5 May 2005 11:28:52 +0000 (11:28 +0000)]
- Make use of capabilities of new template class
- Don't show "Chmod/Chgrp" link in directory listing if the object is a symbolic
link
pcanterino [Thu, 5 May 2005 11:14:31 +0000 (11:14 +0000)]
Updated to version 1.5
See http://www.patshaping.de/redirector/redirect.php?page=template-class
pcanterino [Wed, 4 May 2005 19:54:29 +0000 (19:54 +0000)]
Removed templates/confirm_unlock.htm
pcanterino [Sat, 30 Apr 2005 09:37:19 +0000 (09:37 +0000)]
Typo
pcanterino [Sun, 24 Apr 2005 11:22:00 +0000 (11:22 +0000)]
Small changes
pcanterino [Sat, 23 Apr 2005 07:54:27 +0000 (07:54 +0000)]
Fixed typo
pcanterino [Sat, 23 Apr 2005 07:05:29 +0000 (07:05 +0000)]
Removed debug code
pcanterino [Fri, 22 Apr 2005 17:35:31 +0000 (17:35 +0000)]
Fixed a really strange bug only occuring on Windows systems
pcanterino [Fri, 22 Apr 2005 17:09:51 +0000 (17:09 +0000)]
Some small changes
pcanterino [Fri, 22 Apr 2005 12:55:00 +0000 (12:55 +0000)]
- Removed HTML::Entities:
This module is a little bit slow and does currently not support very much
encodings. Now, we just encode the HTML control characters (<, >, & and ").
- Began to fix bugs [
1120717] and [
1071051]
pcanterino [Sat, 16 Apr 2005 07:59:08 +0000 (07:59 +0000)]
Changed version number
pcanterino [Fri, 15 Apr 2005 20:08:22 +0000 (20:08 +0000)]
Small cleanup
pcanterino [Fri, 15 Apr 2005 15:20:41 +0000 (15:20 +0000)]
This line of code causes nothing but problems! I thought this was fixed long
time ago!
pcanterino [Fri, 15 Apr 2005 14:42:53 +0000 (14:42 +0000)]
- Do not write new file content if the user did not change it
- If two users edit a file at the same time and they both did the same changes,
do not complain that the file has changed
pcanterino [Sun, 10 Apr 2005 12:27:17 +0000 (12:27 +0000)]
Do not switch to binmode before saving a file or before showing the editing
form. It caused a problem with the line endings. Let's hope it does not cause
new problems...
pcanterino [Sun, 10 Apr 2005 10:13:28 +0000 (10:13 +0000)]
*grr*
Don't parse the "binary_file" {IF} block, parse the "binary" {IF} block!
pcanterino [Sun, 10 Apr 2005 09:55:31 +0000 (09:55 +0000)]
- Locking did not work
- Allow to save an empty file
pcanterino [Sun, 10 Apr 2005 09:24:20 +0000 (09:24 +0000)]
- Began to change the behaviour of Dev-Editor's editing function:
The concept of locking the file for other users before editing it is not very
good, causes some problems and makes it difficult to add new features. So I
decided to remove it.
When Dev-Editor shows the form for editing a file, it calculates the MD5
checksum and places it in the editing form. Before saving the file, the MD5
checksum is calculated again and compared to the submitted one. If the two
sums don't match, Dev-Editor does not save the file and shows the editing
form.
It seems to work, but the solution is currently VERY dirty...
- Removed the possibility to encode ISO-8859-1 HTML entities. There is no real
use for this function.
- The extension of the configuration files is now "conf"
- Changed the names of some error messages:
binary -> binary_file
cmd_unknown -> command_unknown
create_ar -> create_above_root
not_exist -> not_found
pcanterino [Sat, 9 Apr 2005 14:30:35 +0000 (14:30 +0000)]
Form element "file" was defined twice
pcanterino [Mon, 21 Mar 2005 15:54:16 +0000 (15:54 +0000)]
Updated to version 1.4a
See http://www.patshaping.de/redirector/redirect.php?page=template-class
pcanterino [Fri, 18 Mar 2005 18:14:41 +0000 (18:14 +0000)]
Using the move() function from the File::Copy module is more reliable than using
the rename() function
pcanterino [Mon, 28 Feb 2005 16:34:19 +0000 (16:34 +0000)]
Don't create an incomplete HTML table if the root directory is empty or none of
the files in the root directory matches against the current wildcard
pcanterino [Sat, 19 Feb 2005 09:42:04 +0000 (09:42 +0000)]
Now, the root directory must not be a symbolic link.
Sorry for this, I really would have liked to allow the root directory to be a
symbolic link, but if I would allow this, Dev-Editor would not be able to create
files in the root directory. I'm looking for an alternative...
pcanterino [Wed, 16 Feb 2005 14:10:40 +0000 (14:10 +0000)]
http://forum.de.selfhtml.org/?t=101375&m=622582
This posting in a big german web developer forum sounds very convincing
pcanterino [Mon, 14 Feb 2005 15:33:27 +0000 (15:33 +0000)]
The file saving process was aborted if the user wanted to write text data using
the edit function into a file that does not exists.
The reason was that Dev-Editor thought that this non-existing file was a binary
file.
pcanterino [Mon, 14 Feb 2005 12:45:07 +0000 (12:45 +0000)]
Small code cleaning
pcanterino [Sun, 13 Feb 2005 15:22:21 +0000 (15:22 +0000)]
Aha!
pcanterino [Sun, 13 Feb 2005 15:12:08 +0000 (15:12 +0000)]
- Handle broken symbolic links properly
- It was possible to create files above the virtual root directory using
symbolic links
- Updated version number to 2.3.1
pcanterino [Sun, 13 Feb 2005 10:31:59 +0000 (10:31 +0000)]
Windows drive letters are case-insensitive!
pcanterino [Sun, 13 Feb 2005 09:42:39 +0000 (09:42 +0000)]
- For security reasons, I completely changed the handling of symbolic links:
Symbolic links are now treated as files, no matter where they point to. The
user is just allowed to see the path where the link points to, he is allowed
to delete the link, to rename it and to overwrite it by renaming an other
file. Nothing else is allowed.
Accessing a symbolic link pointing to a directory caused also a very strange
effect: It was possible to access this directory, but you could not access the
objects in it.
I had to do it in this way because of the very stupid behaviour of abs_path()
from the Cwd module: This function is just able to detect the absolute path of
directories.
Hard links are not affected by this, because it is not possible to detect them
(at least I don't know how to detect them).
- Changed the names of two error messages:
dircopy -> dir_copy
editdir -> dir_edit
- Fixed various errors in some template files
pcanterino [Thu, 10 Feb 2005 18:42:10 +0000 (18:42 +0000)]
- Check if unlocking of the list of files in use was successful
- Check if a file could be successfully added to the list of files in use
- Check if a file could be successfully removed from the list of files in use
pcanterino [Wed, 9 Feb 2005 18:21:58 +0000 (18:21 +0000)]
file_read() is now able to open a file in binary mode (maybe we will need it)
pcanterino [Sat, 5 Feb 2005 13:48:54 +0000 (13:48 +0000)]
Updated to version 1.4
See http://www.patshaping.de/redirector/redirect.php?page=template-class
pcanterino [Tue, 1 Feb 2005 21:06:04 +0000 (21:06 +0000)]
Changed some comments
pcanterino [Mon, 24 Jan 2005 16:04:26 +0000 (16:04 +0000)]
ARGH!
pcanterino [Fri, 21 Jan 2005 14:00:03 +0000 (14:00 +0000)]
Parse the {IF} block "gmt" only once
pcanterino [Thu, 20 Jan 2005 15:20:15 +0000 (15:20 +0000)]
- Allow to use Greenwich Mean Time in date strings (maybe someone needs it)
- Changed the order of the configuration options a little bit
pcanterino [Mon, 10 Jan 2005 14:32:45 +0000 (14:32 +0000)]
Whoops...
Missing line break at the end of the file
pcanterino [Sat, 8 Jan 2005 10:18:18 +0000 (10:18 +0000)]
- NOW check_path() should work properly
I removed my self-written code to resolve "..", "...", "...." and so on and
replaced it by a single call to abs_path(). That is more reliable!
- file_name() and upper_path() now take care of a
"multiple-slash-root-directory" and Windows drive letters
pcanterino [Fri, 7 Jan 2005 15:51:26 +0000 (15:51 +0000)]
Updated version number and copyright year
pcanterino [Fri, 7 Jan 2005 12:32:58 +0000 (12:32 +0000)]
Small cleanup
pcanterino [Fri, 7 Jan 2005 11:10:45 +0000 (11:10 +0000)]
Let's hope, check_path() is now working properly.
Maybe we should switch to Win32::GetFullPathName() on Windows...
pcanterino [Thu, 6 Jan 2005 14:28:00 +0000 (14:28 +0000)]
- Fixed a bug occuring if the "curdir" CGI parameter had no trailing slash and
the "newfile" parameter had no leading slash
- On Windows systems it was possible to access the directories above the root
directory by accessing a path ending with "..." or "...." and so on
pcanterino [Thu, 6 Jan 2005 11:25:46 +0000 (11:25 +0000)]
- When composing the temporary virtual path for a new file, don't call
clean_path(). It is unnecessary and it also caused a problem if this path
would begin with /../, because on UNIX systems, canonpath() removes /../ at
the beginning of a path. So if a user wanted to create the file /../file.ext
(which he wasn't allowed to), he created /file.ext.
- file_name() and upper_path() now remove multiple trailing slashes
- Improved configuration file parser:
- Allow configuration options with empty values
- If a option is defined twice, the line number is shown in the error message
- Static values are now surrounded by single quotes. Maybe it helps to increase
the speed of Dev-Editor, because Perl doesn't have to try to interpolate
variables in the values.
pcanterino [Wed, 5 Jan 2005 16:06:19 +0000 (16:06 +0000)]
- Removed error message "file_in_use"
- Synchronized exec_mkfile() and exec_mkdir() in Command.pm
pcanterino [Tue, 4 Jan 2005 12:53:57 +0000 (12:53 +0000)]
- In the virtual directory string, check_path() converts backslashes to slashes
before removing slashes at the beginning (not really necessary, but I want to
be sure)
- check_path() and equal_url() now remove multiple disturbing slashes in strings
pcanterino [Tue, 4 Jan 2005 12:22:00 +0000 (12:22 +0000)]
- Format HTTP root as hyperlink
- "User" -> "Process user"
"Group" -> "Process group"
pcanterino [Sun, 2 Jan 2005 13:33:28 +0000 (13:33 +0000)]
- Check if the CGI module was able to create a valid handle for a file upload
- Changed the error message "lock_failed" a little bit
pcanterino [Fri, 31 Dec 2004 14:36:50 +0000 (14:36 +0000)]
When parsing a configuration file, ignore lines like that:
= Value
pcanterino [Wed, 29 Dec 2004 20:39:59 +0000 (20:39 +0000)]
If locking of the uselist file failed, get the template variables directly from
the File::UseList object, because the name of the lock file could have been
composed by File::UseList.
pcanterino [Wed, 29 Dec 2004 11:55:34 +0000 (11:55 +0000)]
Changed some error messages
pcanterino [Wed, 29 Dec 2004 11:51:54 +0000 (11:51 +0000)]
Cleaned exec_show() and exec_beginedit()
pcanterino [Sun, 26 Dec 2004 12:13:57 +0000 (12:13 +0000)]
- Allow to filter directory listing using DOS-style wildcards (maybe it still
needs work for being more usable)
- Fixed a typo in File::Access
pcanterino [Tue, 21 Dec 2004 13:40:34 +0000 (13:40 +0000)]
- While processing a file upload, check if the user wants to replace a directory
or overwrite a write-protected file
- If the user wants to copy or rename a file, check if he wants to overwrite a
write-protected file
pcanterino [Tue, 21 Dec 2004 10:11:22 +0000 (10:11 +0000)]
Some small changes
pcanterino [Fri, 17 Dec 2004 17:05:45 +0000 (17:05 +0000)]
- Dev-Editor now uses flock(). flock() is called using a wrapper function which
checks if it is really available.
- file_save() in File::Access is now able to open a file in binary mode. Thus,
the file saving process in the file upload code in Command.pm has been
replaced by a single file_save() call.
pcanterino [Fri, 17 Dec 2004 15:00:40 +0000 (15:00 +0000)]
Removed useless "use Tool;" in Output.pm
pcanterino [Thu, 16 Dec 2004 15:45:32 +0000 (15:45 +0000)]
- Entities in some more strings are now encoded
- The Hash Reference for devedit_reload() is now optional
- Removed "use Data::Dumper;" in Command.pm. I forgot to remove it after debugging.
pcanterino [Mon, 13 Dec 2004 15:17:44 +0000 (15:17 +0000)]
- exec_chprop() should have a proper coding style, but it made the routine hard
to maintain. Thus, I changed its structure.
- Don't allow to change the properties of a file in use
- Don't allow to upload a file if a file with the same virtual name is currently
in use
pcanterino [Fri, 10 Dec 2004 14:00:32 +0000 (14:00 +0000)]
The "Edit" link of files in use were not greyed in directory listing.
I hope it works properly now...
pcanterino [Mon, 6 Dec 2004 16:25:02 +0000 (16:25 +0000)]
Do not allow to change the properties of the virtual root directory
pcanterino [Fri, 3 Dec 2004 16:41:45 +0000 (16:41 +0000)]
Some cleanings
pcanterino [Fri, 3 Dec 2004 14:04:28 +0000 (14:04 +0000)]
Version 1.3:
- Replaced open() by sysopen()
- Added method remove_all() to remove all files from the list (maybe we will
need it...)
- Changed my email address
pcanterino [Mon, 29 Nov 2004 15:32:43 +0000 (15:32 +0000)]
File uploads did not work. Fixed in Dev-Editor 2.2a.
patrick-canterino.de