-
- // fix query_string
- if (!empty($command)) {
- $queryString = str_replace(
- $command . '&',
- $command . '?',
- $queryString
- );
- }
-
- // unix style "homedir"
- if (substr($command, 0, 1) === '~') {
- $command = 'profile/' . substr($command, 1);
- }
-
- // Diaspora style profile url
- if (substr($command, 0, 2) === 'u/') {
- $command = 'profile/' . substr($command, 2);
- }
+ // Remove generated and one-time use parameters
+ unset($queryParameters['pagename']);
+ unset($queryParameters['zrl']);
+ unset($queryParameters['owt']);