mirror of
https://github.com/kevachat/webapp.git
synced 2025-08-26 13:42:40 +00:00
add namespace validation
This commit is contained in:
parent
7c51f3d57a
commit
a733f151e9
@ -184,6 +184,12 @@ class AppExtension extends AbstractExtension
|
|||||||
string $namespace
|
string $namespace
|
||||||
): string
|
): string
|
||||||
{
|
{
|
||||||
|
// Validate namespace supported to continue
|
||||||
|
if (!preg_match('/^[A-z0-9]{34}$/', $namespace))
|
||||||
|
{
|
||||||
|
return $namespace;
|
||||||
|
}
|
||||||
|
|
||||||
// Connect kevacoin
|
// Connect kevacoin
|
||||||
$client = new \Kevachat\Kevacoin\Client(
|
$client = new \Kevachat\Kevacoin\Client(
|
||||||
$this->container->getParameter('app.kevacoin.protocol'),
|
$this->container->getParameter('app.kevacoin.protocol'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user