Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added posibility to create access-path with a '.' character in repository name. #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions include/ifcorelib/IF_SVNAuthFileC.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ public function save($path = null)
}
return false;
}

/**
* Gets all existing aliases.
*
*
* @return array <string>
*/
public function aliases()
Expand Down Expand Up @@ -148,13 +148,13 @@ public function repositories()

return $ret;
}

/**
* Resolves the given alias to its real value.
*
*
* @param string $alias
*
* @return string
*
* @return string
*/
public function getAliasValue($alias)
{
Expand Down Expand Up @@ -369,7 +369,7 @@ public function addRepositoryPath($repopath)
}

// Validate the $repopath string.
$pattern = '/^[A-Za-z0-9\_\-.]+:\/.*$/i';
$pattern = '/^[A-Za-z0-9\_\-\.]+:\/.*$/i';
if ($repopath != "/" && !preg_match($pattern, $repopath))
{
throw new Exception('Invalid repository name. (Pattern: '.$pattern.')');
Expand Down Expand Up @@ -819,4 +819,4 @@ public function permissionsOfGroup($groupname, $resolveGroups = true, $filterRep
return $ret;
}
}
?>
?>