error checking
diff --git a/pmc-minutes.php b/pmc-minutes.php
index 9f0c3b0..2301c09 100644
--- a/pmc-minutes.php
+++ b/pmc-minutes.php
@@ -10,8 +10,17 @@
<div id="maincontent">
<div id="midcolumn">
<?php
-$contents = file_get_contents( "minutes/" . $_GET['key'] . ".html" );
-echo $contents ;
+ if( preg_match( "/^(\d\d\d\d\.\d\d\.\d\d)$/", $_GET['key'], $matches ) > 0 ) {
+ $key = $matches[1];
+ $contents = file_get_contents( "minutes/" . $key . ".html" );
+ echo $contents ;
+ } else {
+?>
+ <font color="red">
+ Sorry, <?= $_GET['key'] ?> is not a valid PMC meeting minutes file.
+ </font>
+<?php
+ }
?>
</div>