Script part url can't contains upper case letters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Woda |
Fix Committed
|
Low
|
Unassigned |
Bug Description
Part of this was reported by Alexander, long time ago.
See http://
Concerns Woda version 4.0 4.1 4.2 4.6.x
If the url contains something like http://
The path to the scriptfile is lost if one of your directory starts with an uppercase letter!
The problem is in sub mainPathInfo. The check below was added to allow Home at server root in the "pro" version:
elsif ($ENV{SCRIPT_NAME} =~ m|^/[A-Z]|)
Inserting the code from pro will not fix, as $SCRIPTNAME will still remains undefined.
I suggest to not fix at first, but keep this bug open, as we can may be found another way to allow Home at server root.
Related branches
- Woda: Pending requested
- Diff: 0 lines
Changed in woda: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in woda: | |
status: | Confirmed → Fix Committed |
Changed in woda: | |
milestone: | none → merge-with-pro |
This is a possible fix:
change:
elsif ( $ENV{'SCRIPT_NAME'} =~ m|^/[A-Z]| )
to something that will check for uppercase characters, followed by everything but a slash:
elsif ( $ENV{'SCRIPT_NAME'} =~ m|^/[A-Z]!/+| )
Tested against these urls: woda/Demos/ news.cgi woda supplied demo script woda/db/ use/x1930 database created from web interface
http://
http://
And of course, it works :-)
But it should be tested also with redirected urls using ScriptAliasMatch