AndrewPaglusch / FlashPaper

One-time encrypted password/secret sharing
MIT License
374 stars 60 forks source link

PHP Undefined Variable Warning #106

Closed AndrewPaglusch closed 5 months ago

AndrewPaglusch commented 1 year ago

https://github.com/AndrewPaglusch/FlashPaper/blob/66d036bfb74d4f802d5485c728b3af627295d8a1/index.php#L27

The above line references the variable $json, which is not defined. I believe it should be replaced with false. This results in the following warning being logged:

PHP message: PHP Warning:  Undefined variable $json in /var/www/html/index.php on line 27