[pgstatus] [PATCH 1/3] Allow the raw parameter to fetch.php to be 0
This makes the chosen value more explicit in the URL.
This allows future commits adding raw=0 links to work.
---
library.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/library.php b/library.php
index b9612df..1695b06 100644
--- a/library.php
+++ b/library.php
@@ -395,7 +395,7 @@ function sanitize_params() {
}
break;
case "raw":
- array_push($result, array_key_exists("raw", $_GET));
+ array_push($result, safe_get($_GET, $param, 0) == 1);
break;
case "state":
$tmp = ucwords(safe_get($_GET, $param));
--
2.11.0
Reply to: