diff options
| author | Frederick Muriuki Muriithi | 2026-08-18 10:05:32 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-08-18 10:05:32 -0500 |
| commit | 47e8ac233a64ad578719bd31bb24a53940e21771 (patch) | |
| tree | 64dd4aa47a4a2e2f1fafe8349602b78859138936 /sourcecodes | |
| parent | 02c5eef4ae43c0d78ff87fb74865d087843b7484 (diff) | |
| download | BNW-47e8ac233a64ad578719bd31bb24a53940e21771.tar.gz | |
Bugfix: Check that key exists before use.
Diffstat (limited to 'sourcecodes')
| -rw-r--r-- | sourcecodes/bn_file_load_gom.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sourcecodes/bn_file_load_gom.php b/sourcecodes/bn_file_load_gom.php index e52a1e43..a09c8bf0 100644 --- a/sourcecodes/bn_file_load_gom.php +++ b/sourcecodes/bn_file_load_gom.php @@ -27,9 +27,10 @@ $alpha="$alphas[$al1]"."$alphas[$al2]"."$alphas[$al3]"; $keyval=$alpha; -if($_POST["My_key"]!="") - $keyval=$_POST["My_key"]; - $keyval=valid_keyval($keyval); +if(isset($_POST["My_key"]) && ($_POST["My_key"]!="")) { + $keyval=$_POST["My_key"]; + $keyval=valid_keyval($keyval); +} $sid=$keyval."continuous_input"; //$dir="./data/"; |
