]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/Form.java
Fix test for csrf.
[gigi.git] / src / org / cacert / gigi / output / Form.java
index 16440cc3213e8a64ec306c568f38d4d2a4342ab1..11209ca51146769f15ec27654556db9343a80260 100644 (file)
@@ -60,6 +60,9 @@ public abstract class Form implements Outputable {
                        throw new CSRFError();
                }
                Form f = (Form) hs.getAttribute("form/" + target.getName() + "/" + csrf);
+               if (f == null) {
+                       throw new CSRFError();
+               }
                return (T) f;
        }