This uses the function in GNU social index.php which does the exact same
filtering as desired by Qvitter, but in a compatible way with both the
querystring and PATH_INFO rewrite rules for webservers.
This fixes the problem of not being able to see the profile box on a user's profile page on servers which don't rewrite to ?p=... but instead /index.php/blah (and thus use the server's PATH_INFO string)
This uses the function in GNU social index.php which does the exact same filtering as desired by Qvitter, but in a compatible way with both the querystring and PATH_INFO rewrite rules for webservers.