Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 30, 2022
1 parent 35c769a commit cb6a652
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/cs/vulnerability-protection.texy
Expand Up @@ -14,7 +14,7 @@ Cross-Site Scripting je metoda narušení webových stránek zneužívající ne
Příkladem útoku může být podstrčení upravené URL uživateli, pomocí které injektujeme do stránky svůj kód. Když aplikace nebude výstupy řádně ošetřovat, vykoná skript v prohlížeči uživatele. Tímto způsobem mu můžeme například zcizit identitu.

```
http://example.com/?search=<script>alert('Úspěšný XSS útok.');</script>
https://example.com/?search=<script>alert('Úspěšný XSS útok.');</script>
```


Expand Down
2 changes: 1 addition & 1 deletion doc/en/vulnerability-protection.texy
Expand Up @@ -13,7 +13,7 @@ Cross-Site Scripting is a site disruption method using unescaped input. An attac
An example of such an injection may be slipping the user an altered URL, which inserts a "malicious" script. If an application does not escape its inputs properly, such a request would possibly execute a script on the client's side. This may, for example, lead to stolen identity.

```
http://example.com/?search=&lt;script>alert('XSS attack.');&lt;/script>
https://example.com/?search=<script>alert('XSS attack.');</script>
```

Nette Framework comes up with a brand new technology of [Context-Aware Escaping |latte:safety-first#context-aware-escaping], which will get you rid of the Cross-Site Scripting risks forever. It escapes all inputs automatically based on a given context, so it's impossible for a coder to accidentally forget something. Consider the following template as an example:
Expand Down
2 changes: 1 addition & 1 deletion latte/cs/filters.texy
Expand Up @@ -546,7 +546,7 @@ replaceRE(string pattern, string replace = '') .[filter]
Provede vyhledávání regulárních výrazů s nahrazením.

```latte
{='hello world'|replaceRE: 'l.*', 'l'} {* vypíše 'hel' *}
{='hello world'|replaceRE: '/l.*/', 'l'} {* vypíše 'hel' *}
```


Expand Down
2 changes: 1 addition & 1 deletion latte/en/filters.texy
Expand Up @@ -546,7 +546,7 @@ replaceRE(string pattern, string replace = '') .[filter]
Replaces all occurrences according to regular expression.

```latte
{='hello world'|replaceRE: 'l.*', 'l'} {* outputs 'hel' *}
{='hello world'|replaceRE: '/l.*/', 'l'} {* outputs 'hel' *}
```


Expand Down

0 comments on commit cb6a652

Please sign in to comment.