Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Sep 2, 2024
1 parent e2faa5d commit 27f3125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web-security/csrf-reflected-alert/server
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def challenge_get():
for post in db.execute("SELECT * FROM posts").fetchall():
page += f"""<h2>Author: {post["author"]}</h2>"""
if post["author"] == username:
page += "<b>YOUR DRAFT POST:</b> " + post["content"] + "<hr>\n"
page += "<b>YOUR POST:</b> " + post["content"] + "<hr>\n"
elif username == "admin":
page += "<b>NON-ADMIN POST HIDDEN FOR SAFETY</b>"
elif post["published"]:
Expand Down
2 changes: 1 addition & 1 deletion web-security/level-13/server
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def challenge_get():
for post in db.execute("SELECT * FROM posts").fetchall():
page += f"""<h2>Author: {post["author"]}</h2>"""
if post["author"] == username:
page += "<b>YOUR DRAFT POST:</b> " + post["content"] + "<hr>\n"
page += "<b>YOUR POST:</b> " + post["content"] + "<hr>\n"
elif username == "admin":
page += "<b>NON-ADMIN POST HIDDEN FOR SAFETY</b>"
elif post["published"]:
Expand Down

0 comments on commit 27f3125

Please sign in to comment.