Log in

View Full Version : Username with '&' - search error!?


Erbium
01-17-2006, 08:38 AM
I have two links in my template:

<if condition="$show['member']">

<a href="search.php?do=process&showposts=0&exactname=1&starteronly=1&searchuser=$bbuserinfo[username]" class="navbar"><b>Threads started by me</b></a>

</if>

<br>

<if condition="$show['member']">

<a href="search.php?do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]" class="navbar"><b>Threads I've posted</b></a>

</if>

The problem starts when a user that have a username wich contains '&' returns the error

Invalid User specified. If you followed a valid link, please notify the administrator



I think the urldecode function from php will solve it but how can I use it?



Thanks for the help.

Erbium
01-24-2006, 07:25 AM
I have two links in my template:

<if condition="$show['member']">

<a href="search.php?do=process&showposts=0&exactname=1&starteronly=1&searchuser=$bbuserinfo[username]" class="navbar"><b>Threads started by me</b></a>

</if>

<br>

<if condition="$show['member']">

<a href="search.php?do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]" class="navbar"><b>Threads I've posted</b></a>

</if>

The problem starts when a user that have a username wich contains '&' returns the error

I think the urldecode function from php will solve it but how can I use it?



Thanks for the help.

Nobody?