Jump to content

Edit History

ps8modules

ps8modules

contactform.php

Find: function sendMessage().

Add your message control.

Add after $clientTokenTTL:

$restricts = ['#','/','$','%','*'];
$isValidMessage = true;
foreach ($restricts as $restrict) {
  if (strpos($message, $restrict) !== false){$isValidMessage = false;}
}

And update:

elseif (!Validate::isCleanHtml($message))

To:

elseif (!Validate::isCleanHtml($message) || $isValidMessage == false)

 

obrazek.png.8f475fda0d750d745c16aedee60fad8e.png

 

obrazek.png.c50c4cd4b9c60bf6492024ac925a5345.png

ps8modules

ps8modules

contactform.php

Find: function sendMessage().

Add your message control.

Add after $clientTokenTTL:

$restricts = ['#','/','$','%','*'];
$isValidMessage = true;
foreach ($restricts as $restrict) {
  if (strpos($message, $restrict) !== false){$isValidMessage = false;}
}

And update:

elseif (!Validate::isCleanHtml($message))

To:

elseif (!Validate::isCleanHtml($message) || $isValidMessage == false)

 

 

ps8modules

ps8modules

contactform.php

Find: function sendMessage().

Add your message control.

Add after $clientTokenTTL:

$restricts = ['#','/','$','%','*'];
$isValidMessage = true;
foreach ($restricts as $restrict) {
  if (strpos($message, $restrict) !== false){$isValidMessage = false;}
}

And update:

elseif (!Validate::isCleanHtml($message))

To:

elseif (!Validate::isCleanHtml($message) || $isValidMessage == false)

ps8modules

ps8modules

contactform.php

Find: function sendMessage().

Add message control.

Add after $clientTokenTTL:

$restricts = ['#','/','$','%','*'];
$isValidMessage = true;
foreach ($restricts as $restrict) {
  if (strpos($message, $restrict) !== false){$isValidMessage = false;}
}

And update:

elseif (!Validate::isCleanHtml($message))

To:

elseif (!Validate::isCleanHtml($message) || $isValidMessage == false)

×
×
  • Create New...