Skip to content

Commit

Permalink
mappermod
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Aug 20, 2009
1 parent b93ebc9 commit ce4fa72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions db/library/dbscript/mapper.php
Expand Up @@ -227,6 +227,14 @@ function setup() {

if (count($urlsplit)>1)
$paramstr = $urlsplit[0];

if (isset($this->client_wants) && $qp > $lenbase) {
$ext = $this->client_wants;
if (!(strpos($paramstr,".".$ext) === false))
$paramsplit = split("\.".$ext, $paramstr);
if (isset($paramsplit) && count($paramsplit) == 2)
$paramstr = $paramsplit[0].".".$ext.str_replace('/','%2F',str_replace(':','%3A',$paramsplit[1]));
}

if ($qp > $lenbase)
$this->params = explode( '/', $paramstr);
Expand Down

0 comments on commit ce4fa72

Please sign in to comment.