[wp-hackers] PATH_INFO permalinks problem and proposed fix

Ryan Boren ryan at boren.nu
Wed Oct 20 03:37:35 UTC 2004


Dennis Williamson wrote:

> The last isset is returning TRUE, even when there's no query string 
> because, at least on my server, $_SERVER['QUERY_STRING'] **exists** 
> even though it's empty.
>
> In the following code, I check for it to exist and then whether it's 
> null before I append the query string. I've broken out the test 
> expression into a couple of ifs in order to avoid getting really messy.

Good.  I hate nested ternary operators.

> If this is something that applies to more than just me, I'll post it 
> on mosquito. I've checked CVS and the code there is the same as above.

Go ahead and post it to mosquito.

Ryan



More information about the hackers mailing list