fix sprintf call; set minimum NextCloud version to 20

This commit is contained in:
binsky 2021-03-12 17:25:56 +01:00
parent 16839713e5
commit 860611525a
2 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ For an demo of this app visit [https://demo.passman.cc](https://demo.passman.cc)
<database>pgsql</database>
<database min-version="5.5">mysql</database>
<lib>openssl</lib>
<nextcloud min-version="17" max-version="22"/>
<nextcloud min-version="20" max-version="22"/>
<owncloud min-version="10" max-version="10"/>
</dependencies>

View file

@ -90,10 +90,10 @@ class Provider implements IProvider {
$searchResultEntries[] = new SearchResultEntry(
$this->urlGenerator->imagePath(Application::APP_ID, 'app.svg'),
$Credential->getLabel(),
\Safe\sprintf("Part of Passman vault %s", $Vault->getName()),
\sprintf("Part of Passman vault %s", $Vault->getName()),
$this->urlGenerator->linkToRoute('passman.page.index') . "#/vault/" . $Vault->getGuid() . "?show=" . $Credential->getGuid()
);
} catch (StringsException $e) {
} catch (Exception $e) {
}
}
}