[pmwiki-devel] Subtle FORM bug?
marc
gmane at auxbuss.com
Fri Nov 24 04:41:42 CST 2006
Henrik said...
> I have implemented .htaccess processing to hide website subaccount
> subdirectories from the public root, from the user, when using parked
> domain names.
>
> So macgregorpark.ca/macgregorpark/wiki/wiki.php
>
> looks like macgregorpark.ca/wiki/wiki.php
>
> to the user.
>
> To support this I have set $ScriptUrl (in farmconfig.php) to:
>
> $CustomHost=$_SERVER["HTTP_HOST"];
> $ScriptUrl="http://$CustomHost/wiki/wiki.php";
>
> This works fine in all contexts (so far), except for the FORM URL parameter
>
> (:input form "{$ScriptUrl}/{$FullName}" GET:)
Unless I'm misunderstanding, you could try:
(:input form "" GET:)
Also, I don't know your reasons for using GET, but worth a try is:
(:input form "":)
This format might also be useful:
(:input form "?action=...":)
> which results in
>
> http://macgregorpark.ca/wiki/wiki.php/Site.SiteMap?...
>
> and an error message of "No input file specified." (the same thing works
> fine without the config $ScriptUrl assignment, ie
> http://macgregorpark.ca/macgregorpark/wiki/wiki.php/Site.SiteMap?... works).
Which is as expected. I define $ScriptUrl when mod rewriting away a
level of hierarchy, as you are doing, but I don't use it ($ScriptUrl) in
my scripts.
--
Best,
Marc
More information about the pmwiki-devel
mailing list