mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Use urlencode instead of htmlspecialchars
This commit is contained in:
parent
146385609c
commit
34cb9a073c
3 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$fingerprint = htmlspecialchars($_GET["fp"]);
|
||||
$user = htmlspecialchars($_GET["user"]);
|
||||
$fingerprint = urlencode($_GET["fp"]);
|
||||
$user = urlencode($_GET["user"]);
|
||||
|
||||
$url = "https://lobste.rs/u/$user.json";
|
||||
$check = "\[Verifying my OpenPGP key: openpgp4fpr:$fingerprint\]";
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
$fingerprint = htmlspecialchars($_GET["fp"]);
|
||||
$user = htmlspecialchars($_GET["user"]);
|
||||
$comment = htmlspecialchars($_GET["comment"]);
|
||||
$fingerprint = urlencode($_GET["fp"]);
|
||||
$user = urlencode($_GET["user"]);
|
||||
$comment = urlencode($_GET["comment"]);
|
||||
|
||||
$url = "https://www.reddit.com/user/$user/comments/$comment.json";
|
||||
$check = "\[Verifying my OpenPGP key: openpgp4fpr:$fingerprint\\\\\]";
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
include 'secrets.php';
|
||||
|
||||
$fingerprint = htmlspecialchars($_GET["fp"]);
|
||||
$tweetId = htmlspecialchars($_GET["id"]);
|
||||
$fingerprint = urlencode($_GET["fp"]);
|
||||
$tweetId = urlencode($_GET["id"]);
|
||||
|
||||
$check = "\[Verifying my OpenPGP key: openpgp4fpr:$fingerprint\]";
|
||||
|
||||
|
|
Loading…
Reference in a new issue