Skip to content

Commit 554025e

Browse files
committed
str to lower incoming text
Check for GET variable
1 parent 9f723a2 commit 554025e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

feed.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
$outdir = "out";
66

7-
if((!isset($_GET['asn'])) && (!isset($_GET['country']))) {
7+
if((!isset($_GET['asn'])) && (!isset($_GET['country'])) && (!isset($_GET['rir'])) ) {
88
header("Content-Type: text/plain");
99
echo file_get_contents("README");
1010
exit(0);
@@ -25,7 +25,7 @@ function aslimit($as) {
2525

2626
// Process Country value
2727
if(isset($_GET['rir'])) {
28-
$val = strtoupper(strip_tags($_GET['rir']));
28+
$val = strtolower(strip_tags($_GET['rir']));
2929
$items = preg_split("/;/", $val);
3030
$items = array_map('trim', $items);
3131
$items = array_map('rlimit', $items);

0 commit comments

Comments
 (0)