Skip to content

Commit cff927c

Browse files
author
Jake Reynolds
committed
fixing 404 for null pagebase
1 parent acf7580 commit cff927c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

404.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
---
33
<script>
4-
window.location.href='{{site.pagebase}}'
4+
var defaultPage = '{{site.pagebase}}';
5+
window.location.href = defaultPage || '/';
56
</script>

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ <h2 id="header">Welcome to the NetSPI SQL Injection Wiki!</h2>
99
<p class="readableText">Below is an outline of the wiki's structure, laid out in the order of a normal escalation path. Certain queries may be version specific.</p>
1010
<h3>Step 1: <a href="{{site.pagebase}}/detection">Injection Detection</a></h3>
1111
<h3>Step 2: <a href="{{site.pagebase}}/dbmsIdentification">DBMS Identification</a></h3>
12-
<h3>Step 3: <a href="{{site.pagebase}}/injectionTypes">Injection Types</a></h3>
13-
<h3>Step 4: <a href="{{site.pagebase}}/injectionTechniques">Injection Techniques</a></h3>
14-
<h3>Step 5: <a href="{{site.pagebase}}/attackQueries">Attack Queries</a></h3>
12+
<h3>Step 3: <a href="{{site.pagebase}}/injectionTypes/">Injection Types</a></h3>
13+
<h3>Step 4: <a href="{{site.pagebase}}/injectionTechniques/">Injection Techniques</a></h3>
14+
<h3>Step 5: <a href="{{site.pagebase}}/attackQueries/">Attack Queries</a></h3>
1515
<p></p>
1616
<h3>Contributing</h3>
1717
<p>Please feel free to submit pull requests or issues on our <a href="https://github.com/NetSPI/SQLInjectionWiki" target="_blank" rel="noopener">Github</a> if you notice something that is missing or inaccurate.</p>

0 commit comments

Comments
 (0)