Page 350 of 211,268, showing 20 records out of 4,225,347 total, starting on record 6,981, ending on 7,000
# | Username | Text | |
---|---|---|---|
# | Aug 9th 2008, 09:48 | minicaker | (sorry for my English) |
# | Aug 9th 2008, 09:49 | Anon323 | so if I have 3 fields and my form only needs 2 and the attacker knows about the 3rd field and he manually adds it to the form cake will save it too? so i need to set up validation rules for all fields -- even if not used in a form? |
# | Aug 9th 2008, 09:50 | minicaker | ¿? |
# | Aug 9th 2008, 09:54 | kalileo | Anon323: it's a good idea to do that |
# | Aug 9th 2008, 09:55 | kalileo | Anon323: and if you have sensitive data there consider to only allow authenticated users to submit data |
# | Aug 9th 2008, 10:00 | Anon323 | what is the rule to dismiss an input completely? |
# | Aug 9th 2008, 10:00 | Anon323 | required => false means the input is optional (will be accepted if exists). |
# | Aug 9th 2008, 10:00 | Anon323 | allowEmpty => true means the input can also be not-empty. |
# | Aug 9th 2008, 10:00 | Anon323 | is it maxLength 0? |
# | Aug 9th 2008, 10:02 | kalileo | Anon323: if you put such a validation in your model validations it might stop you from ever entering data in that filed ;) |
# | Aug 9th 2008, 10:02 | kalileo | *field |
# | Aug 9th 2008, 10:04 | kalileo | Anon323: how about a simple "if (!empty($yourfield)) go bananas;" in your controller before saving |
# | Aug 9th 2008, 10:05 | Anon323 | err ... good idea. i was so fixated on validation rules. |
# | Aug 9th 2008, 10:06 | kalileo | lol |
# | Aug 9th 2008, 10:16 | B00mgo_M4N | hello |
# | Aug 9th 2008, 10:16 | B00mgo_M4N | i am the best cakephp guy on earth! |
# | Aug 9th 2008, 10:17 | kalileo | which earth? |
# | Aug 9th 2008, 10:19 | B00mgo_M4N | yes! |
# | Aug 9th 2008, 10:20 | B00mgo_M4N | i AM cakephp |
# | Aug 9th 2008, 10:21 | kalileo | I asked which earth? |