On Wed, Dec 25, 2002 at 08:39:44PM -0800, Brion Vibber wrote:
Should be straightforward -- just use %26 wherever it represents content and & where it's a magic query string component separator:
http://foobar/wiki/Beeswax_%26_Honey http://foobar/wiki/Beeswax_%26_Honey?action=edit http://foobar/wiki/Special:Whatlinkshere?target=Beeswax_%26_Honey&limit=...
Actually, Brion, because mod_wiki is a module in it's own right, the URL can be in any format we like; it doesn't need to be ?foo=bar&x=y format. In fact, I had no intention of going through mod_rewrite at all. My intention was that you could tell mod_wiki to handle all URL's that start with a certain prefix. Because of this, the Apache module could be distributed separately, without patching Apache at all.
Like so:
<Location /w> SetHandler mod-wiki-handler </Location>
mark to start building a query string. (And remember Apache's mod-rewrite de-URL-encodes the path components before you get to them;
Maybe we could use an alternate minilanguage. For instance, I'm also thinking that the namespace should be a variable instead of a part of the title:
Then the following would get passed in as POST data:
namespace=Special&target=A%26W+Root+Beer&limit=500
It would be nice to keep compatibility with mod_rewrite though.
How about the following?
http://foo/w/Whatlinkshere#ns=Special&target=A%26W+Root+Beer&limit=5...
I also would like language to be a variable, so the URL would become:
http://foo/w/Whatlinkshere#ns=Special&lang=en&target=A%26W+Root+Beer...
Any objections? You did tell me earlier that the # character was not allowed in page titles, and is mod_rewrite likely to escape it? With mod_wiki, mod_rewrite shouldn't be needed, but one never knows when one will want to redirect one URL to another.
Check the ownerhsip/permissions on your upload directory. If it can't create the log file, you may not be able to upload files either. The dir should be writable by the webserver's process.
Ah. Thanks for the tip. I changed the permissions after I tried to do my first upload, so upload has been working.
Jonathan