mirror of
https://github.com/kevachat/webapp.git
synced 2025-03-13 05:51:23 +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
|
||||
{
|
||||
// Validate namespace supported to continue
|
||||
if (!preg_match('/^[A-z0-9]{34}$/', $namespace))
|
||||
{
|
||||
return $namespace;
|
||||
}
|
||||
|
||||
// Connect kevacoin
|
||||
$client = new \Kevachat\Kevacoin\Client(
|
||||
$this->container->getParameter('app.kevacoin.protocol'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user