Skip to content

Commit e20cdbb

Browse files
Merge pull request #82 from codeplaysoftware/security-fixes
Small Security Fixes
2 parents 7286ac1 + 8c013a2 commit e20cdbb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Markdown==3.8 \
2424
--hash=sha256:7df81e63f0df5c4b24b7d156eb81e4690595239b7d70937d0409f1b0de319c6f
2525
PyYAML==6.0.1 \
2626
--hash=sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43
27-
requests==2.32.3 \
28-
--hash=sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6
27+
requests==2.32.4 \
28+
--hash=sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c
2929
six==1.17.0 \
3030
--hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \
3131
--hash=sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81

src/feeds/ProjectFeed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ def _inject_repository_information(
109109
"""
110110
Using GitHub, GitLab, Other APIs, load in more useful repository information.
111111
"""
112-
if 'github.com' in markdown_file.front_matter['external_url']:
112+
external_url = str(markdown_file.front_matter['external_url'])
113+
114+
if external_url.startswith('https://github.com'):
113115
return self._inject_github_repository_information(
114116
json_feed_item, markdown_file)
115117
elif 'gitlab_project_id' in markdown_file.front_matter:

0 commit comments

Comments
 (0)