$this->path = '';
$this->restricted = FALSE;
while (TRUE) {
- if (file_exists("$path/.private")) {
+ if (file_exists("$path/.private") and !$this->restricted) {
$this->restricted = $path;
}
else {
foreach (explode(' ', $params) as $param) {
if ($set = strpos($param, '=')) {
- $Page->place[ substr($param, 0, $set) ] = substr($param, $set + 1);
+ $Page->place[ substr($param, 0, $set) ] = urldecode(substr($param, $set + 1));
}
elseif (!empty($param)) {
$Page->place[] = $param;