]> saetta.ns0.it Git - zakform/cgi/commitdiff
Wrong ret value in FormElementFile::after_validating.
authorAndrea Zagli <azagli@libero.it>
Sun, 3 Jan 2021 07:52:10 +0000 (08:52 +0100)
committerAndrea Zagli <azagli@libero.it>
Sun, 3 Jan 2021 07:52:10 +0000 (08:52 +0100)
src/formelementfile.c

index 27cf67212af9c315b585fa9e66a709b58924baac..f752612be2fd8ca2dd573c84b4b94c4405c7ae52 100644 (file)
@@ -345,6 +345,6 @@ zak_form_cgi_form_element_file_after_validating (ZakFormElement *element, GPtrAr
 {
        ZakFormCgiFormElementFilePrivate *priv = zak_form_cgi_form_element_file_get_instance_private (ZAK_FORM_CGI_FORM_ELEMENT_FILE (element));
 
-       return zak_form_element_validator_validate (priv->validator_file,
-                                                   zak_form_element_get_value_gvalue (element));
+       return !zak_form_element_validator_validate (priv->validator_file,
+                                                    zak_form_element_get_value_gvalue (element));
 }