Skip to content

Commit e86f06c

Browse files
authored
Merge pull request #300 from olleolleolle/fix-html-formatting-in-rack-prot
Docs: Format HTML in rack-protection README
2 parents 1d17cec + 4971756 commit e86f06c

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

_includes/rack-protection-readme.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ <h2>Session Hijacking</h2>
8484

8585
<h2>Cookie Tossing</h2>
8686

87-
<p>Prevented by:
88-
* <a href="http://www.sinatrarb.com/protection/cookie_tossing"><code>Rack::Protection::CookieTossing</code></a> (not included by <code>use Rack::Protection</code>)</p>
87+
<p>Prevented by:</p>
88+
89+
<ul>
90+
<li><a href="http://www.sinatrarb.com/protection/cookie_tossing"><code>Rack::Protection::CookieTossing</code></a> (not included by <code>use Rack::Protection</code>)</li>
91+
</ul>
8992

9093
<h2>IP Spoofing</h2>
9194

@@ -112,9 +115,9 @@ <h1>Installation</h1>
112115
<h1>Instrumentation</h1>
113116

114117
<p>Instrumentation is enabled by passing in an instrumenter as an option.
115-
~~~~
116-
use Rack::Protection, instrumenter: ActiveSupport::Notifications
117-
~~~~</p>
118118

119-
<p>The instrumenter is passed a namespace (String) and environment (Hash). The namespace is ‘rack.protection’ and the attack type can be obtained from the environment key ‘rack.protection.attack’.</p>
119+
<pre><code> use Rack::Protection, instrumenter: ActiveSupport::Notifications
120+
</code></pre>
121+
122+
<p>The instrumenter is passed a namespace (String) and environment (Hash). The namespace is <code>rack.protection</code> and the attack type can be obtained from the environment key <code>rack.protection.attack</code>.</p>
120123

0 commit comments

Comments
 (0)