Problems activating/removing themes

Permalink
Hi,

I just tried concrete5 and it seems very nice. First I created a (simple) theme and installed that one on my development environment (WAMP installed).
It all works fine!

Now moving to my hosting (Windows), it all seems to work ok. So, copying the theme to the /themes folder, clicked on install and the theme was installed.
But, when I want to activate the theme, I get the confirm screen and after pressing the "Yes, I want to activate" button I get a 'Bad Request' screen.

With all the themes I get this.

The host (myself) is using IIS with PHP running in FastCGI. The problem also occurs when runningn PHP in CGI or as an ISAPI extension.

I think more people are running C5 on a windows (plesk) machine at their host. Did you encounter the same and how to solve it?

Snef

SnefIT
 
SnefIT replied on at Permalink Reply
SnefIT
I tried to check some things.

The generated uri when confirming the activation contains a ':' in it and that is not url-encoded.

So I url-encoded the %3a, but FireFox handles it as : right away, so that is not an option.
(I change the ':' to %3A in the url, and again it results in 'Bad Request'.)

BUT! When changing the ':' to '_' (underscore), it will execute the activate_confirm function. The ':' in the uri seems to be the problem.

As far as I know, the : should not be used in uri's, am I correct?

I looked into the C5-core and found the token helper. That's the place the tokens are created and validated.

I altered the generate and validate functions to use a '_' whenever a ':' was used and now it's working fine.

How can this be implemented so that C5 will create a valid uri that is also usable with IIS? ;)
Is the token helper overridable? so that I can create my own version that will be used?

And.... are there any other C5-uri's created containing ':'?

Snef.