-
This patch is extracted from my own extension to Tclhttpd, and adds new commands to the global namespace:
::Object_Url {virtual object {inThread 0}}
::Obj_UrlRemove {object}
::Objdomain {object sock suffix}
::Object_Respond {sock code result {type text/html}}
These commands inject specially designed objects into the Direct() array, and allow those objects to export methods as direct...
2009-10-19 22:42:32 UTC by eviltwinskippy
-
I tried this on OSX with ActiveTcl 8.5 and I do not see the error. I did the following from within tclsh:
% mkdir \[temp\]
% set pattern *
% set dir /path/to/the/dir/with/[temp]
% glob -nocomplain -- [file join $dir $pattern]
I get a directory list from the glob with the [temp] directory as well. No errors.
What version of Tcl?
What OS?.
2009-09-15 22:09:04 UTC by sigzero
-
by default the homedir are accesible by the setting of Doc_PublicHtml in httpdthread. Thedefault should not allow access as this is a security hole.
When you disable it you will get different error messages (403 or 404) depending on whether the user exists or not. better change in doc.tcl:
if {[regexp ^~ $pathlist]} {
if {[info exists Doc(homedir)]} {
set user [lindex $pathlist 0].
2009-03-10 09:03:38 UTC by yahalom
-
This is for tclhttpd 3.5.1.
In lib/dirlist.tcl:180, a directory listing is created with the following glob line:
set list [glob -nocomplain -- [file join $dir $pattern]]
This fails if the $dir contains characters that are glob sensitive as show below, such as if the directory name contains []. Using [glob -directory] option seems to fix this.
% set dir {c:/temp/[a]/}
c:/temp/[a]/
%...
2009-02-25 05:34:37 UTC by wliao
-
JjdnZ7 ivrguzrvzktc, [url=http://cyqykbzlqeiw.com/]cyqykbzlqeiw[/url], [link=http://yklhqzrxlaxw.com/]yklhqzrxlaxw[/link], http://rcvnjtquyapq.com/.
2008-11-28 02:59:03 UTC by nobody
-
eviltwinskippy committed patchset 865 of module tclhttpd to the TclHttpd - Tcl Web Server CVS repository, changing 1 files.
2008-05-06 00:18:22 UTC by eviltwinskippy
-
eviltwinskippy committed patchset 864 of module tclhttpd to the TclHttpd - Tcl Web Server CVS repository, changing 1 files.
2008-05-06 00:17:47 UTC by eviltwinskippy
-
In my case, this problem was because Mtype_ReadTypes doesn't read the mime types file, because a wrong line in the 'httpdthread.tcl' file :
set path [lindex $path 0]
That truncate the true path (wiht spaces)
You can simply comment this line:
foreach path [list \
[file join $Config(lib) mime.types] \
[glob -nocomplain [file join $Config(lib) tclhttpd* mime.types]] \
] {
#...
2008-02-19 14:32:48 UTC by nobody
-
After fixing previous 8.5 starkit problem, I then found that mime handling wasn't working properly. I fixed it by adding "file normalize" to lines 41 and 192 in bin/httpdthread.tcl. This fixed the simple types (man pages and templates) but there is still a problem when I try to veiw the "URL Domains" page.
2007-11-07 23:34:35 UTC by tomk
-
The tclhttpd3.5.1 distribution is missing a pkgIndex.tcl in the custom/ directory which cause "package require mypage" to fail.
2007-11-07 22:17:31 UTC by tomk