fixed query string encoding

This commit is contained in:
sose 2021-04-02 21:11:09 +00:00
parent 9f61fafdd7
commit d0efc8709d
1 changed files with 2 additions and 2 deletions

4
reader
View File

@ -17,10 +17,10 @@ use andreskrey\Readability\Configuration;
use andreskrey\Readability\ParseException;
$readability = new Readability(new Configuration());
$target_url = getenv("QUERY_STRING");
$target_url = urldecode(getenv("QUERY_STRING"));
if ($target_url === null) {
if ($target_url == null) {
echo "10 Link an article to parse:\n";
die();
}