Skip to content

Commit 15f3589

Browse files
committed
A few minor changes for various things
* Add 'contact us' e-mail address * Remove link to OSVDB, as it's dead :( * Don't consider URLs with 'cve.mitre.org' as vendor advisories * Add name of gem to the title
1 parent f169fb5 commit 15f3589

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

404.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: page
3-
title: Whoops I couldn't find that page
3+
title: Whoops, I couldn't find that page
44
footer: true
55
---
66

@@ -14,4 +14,4 @@ Also, here are some recent posts:
1414
{% include archive_post.html %}
1515
</article>
1616
{% endfor %}
17-
</div>
17+
</div>

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace :advisories do
2828
File.open(post, 'w') do |file|
2929
header = {
3030
'layout' => 'advisory',
31-
'title' => "#{id}: #{advisory['title']}",
31+
'title' => "#{id} (#{advisory['gem']}): #{advisory['title']}",
3232
'comments' => false,
3333
'categories' => [advisory['gem'], advisory['framework']].compact,
3434
'advisory' => advisory

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% unless page.sidebar == false %}
22
<div class="span4 sidebar">
33
<div class="well">
4-
Contact us <a href="https://twitter.com/rubysec">@rubysec</a> (email coming soon), or chat in #rubysec on freenode.
4+
Contact us <a href="https://twitter.com/rubysec">@rubysec</a>, info at rubysec.com, or chat in #rubysec on freenode.
55
</div>
66
<div class="well">
77
<section>

_layouts/advisory.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ <h3>ADVISORIES</h3>
1313

1414
{% if page.advisory.osvdb %}
1515
<li>
16-
<a href="https://osvdb.org/show/osvdb/{{ page.advisory.osvdb }}">OSVDB-{{ page.advisory.osvdb }}</a>
16+
OSVDB-{{ page.advisory.osvdb }}
1717
</li>
1818
{% endif %}
1919

20-
{% unless page.advisory.url contains 'osvdb.' or page.advisory.url contains 'web.nvd.nist.gov' %}
20+
{% unless page.advisory.url contains 'osvdb.org' or page.advisory.url contains 'web.nvd.nist.gov'
21+
or page.advisory.url contains 'cve.mitre.org' %}
2122
<li>
2223
<a href="{{ page.advisory.url }}">Vendor Advisory</a>
2324
</li>

0 commit comments

Comments
 (0)