popa3d-users  

Re: [popa3d-users] popa3d-vname, allowing hierarchies for "domain:directory" in vnamemap

Andy Sy
Tue, 09 Nov 2010 07:14:20 -0800

On Tue, Nov 09, 2010 at 07:24:25PM +0800, Andy Sy wrote:
Was able to drastically simplify the patch by just replacing

  if ( strchr(user, '/') || ...

with:

  if ( strstr(address, "..") || ...

You need to keep the user check as well!

Yes, sorry, typo.  This is how the new line looks:

  if ( strstr(address, '/') || strchr(user, '/')) ...

became:

  if ( strstr(address, "..") || strchr(user, '/'))

- Andy