Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
radekdostal authored and dg committed Nov 29, 2015
1 parent 70e0b5f commit 249f516
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Nette\Forms greatly facilitates creating and processing web forms. What it can r

Why should you bother setting up framework for a simple web form? You won't have to take care about routine tasks such as writing two validation scripts (client and server) and your code will be safe against security breaches.

Nette Framework puts a great effort to be safe and since forms are the most common user input, Nette forms are as good as impenetrable. All is maintained dynamically and transparently, nothing has to be set manually. Well known vulnerabilities such as Cross Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) are filtered, as well as special control characters. All inputs are checked for UTF-8 validity. Every multiple-choice, select boxe and similar are checked for forged values upon validating. Sounds good? Let's try it out.
Nette Framework puts a great effort to be safe and since forms are the most common user input, Nette forms are as good as impenetrable. All is maintained dynamically and transparently, nothing has to be set manually. Well known vulnerabilities such as Cross Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) are filtered, as well as special control characters. All inputs are checked for UTF-8 validity. Every multiple-choice, select box and similar are checked for forged values upon validating. Sounds good? Let's try it out.

[See documentation](https://doc.nette.org/en/forms).

Expand Down
6 changes: 3 additions & 3 deletions tests/Forms/Controls.SelectBox.loadData.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test(function () use ($series) { // Select
});


test(function () use ($series) { // Empty select
test(function () { // Empty select
$_POST = ['select' => 'red-dwarf'];

$form = new Form;
Expand All @@ -65,7 +65,7 @@ test(function () use ($series) { // Select with prompt
});


test(function () use ($series) { // Select with optgroups
test(function () { // Select with optgroups
$_POST = ['select' => 'red-dwarf'];

$form = new Form;
Expand Down Expand Up @@ -192,7 +192,7 @@ test(function () use ($series) { // setItems without keys
});


test(function () use ($series) { // setItems without keys
test(function () { // setItems without keys
$form = new Form;
$input = $form->addSelect('select')->setItems(range(1, 5), FALSE);
Assert::same([1 => 1, 2, 3, 4, 5], $input->getItems());
Expand Down
2 changes: 1 addition & 1 deletion tests/Forms/Forms.validationScope.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require __DIR__ . '/../bootstrap.php';


$datasets = [
['send1', ['container', 'form', 'name', 'age', 'age2']],
['send1', ['container', 'form', 'name', 'age', 'age2']],
['send2', ['form']],
['send3', ['form', 'name']],
['send4', ['form', 'age']],
Expand Down

0 comments on commit 249f516

Please sign in to comment.