paragonie/awesome-appsec

[README.md/compiler.php] name field (containing " - ") isn't handled correctly

Opened this issue · 1 comments

JSON:

  • data/00-general/articles/0002-hashing-security.json
  • data/00-general/books/0018-security-engineering.json
  • data/00-general/websites/00-blogs/0002-nccgroup.json
  • data/00-general/websites/02-tools/0003-report-uri.json
  • data/Go/articles/0001-cryptolosophy-memory-security.json
  • data/Node.js/articles/0001-risingstack-checklist.json

Examples: NOK(broken link)

JSON:

  • data/00-general/articles/0005-crypto-unicorns.json
  • data/00-general/websites/0005-news-feeds.json
  • data/00-general/books/0020-holistic-info-sec-for-web-developers-f0.json
  • data/00-general/books/0021-holistic-info-sec-for-web-developers-f1.json

Examples: OK

Workaround: Add this snippet or similar task between lines 237/238 (suggestion).
src/Util.php

        if (\array_key_exists('name', $fd)) {
          if (isset($fd['name'])) {
            $fd['name'] = preg_replace('/\-/', ' ', $fd['name']);
        }

Meanwhile, this won't fix the broken link.