Skip to content
Snippets Groups Projects
Commit 0e9bf431 authored by Thomas Hackl's avatar Thomas Hackl
Browse files

remove credentials and "/login" from Trac URL

parent 63e4e575
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ class Trac
public function __construct($url) {
$this->url = $url;
$this->client = new Client($url . "/jsonrpc");
$this->url = preg_replace('/(?<=:\/\/).*?:.*?@|\/login/', '${1}', $this->url);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment