Skip to content

Commit fc6768f

Browse files
using HTMLPurifier against XSS, Injection, Output Safety
1 parent e8f9bb0 commit fc6768f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
/.idea
33
/.vscode
44
/.github
5+
/.env
6+
/.env.example
7+
/.htaccess
58
tame
69
composer.lock

tests/index_get.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
$response->message = "Submitted Successfully";
3838

3939
dump(
40-
$param->message,
41-
$param,
40+
// $param->message,
41+
$param->toArray(),
4242
// $param->email,
4343
// $param['name'],
4444
// $attribute->occupation,
@@ -61,7 +61,7 @@
6161
<html>
6262
<body>
6363

64-
<form method="post" action="<?= $_SERVER["PHP_SELF"];?>" class="form">
64+
<form method="get" action="<?= $_SERVER["PHP_SELF"];?>" class="form">
6565
<h2>Form sample</h2>
6666

6767
<div class="errorMSg mb-5 <?= $form->getClass() ?>">

0 commit comments

Comments
 (0)