The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Taking a look through the API, I see that when set()ing, you can choose whether to verify or not.
Two questions: 1) How does vB verify? I can't find the code to do it. I see all these references to VF_METHOD, but can't figure out what that is. 2) If you don't verify, and put in bad data, what happens? Does vB try to roll with it, and do as much as it can? Does it crash? Or, does it corrupt the database? |
#2
|
|||
|
|||
![]()
As I haven't gotten a response, I'm assuming that my post lacked enough details to be clear. Please let me know what other information I need to add.
|
#3
|
||||
|
||||
![]() Quote:
If this is set to VF_METHOD, a function verfiy_fieldname will be used to verify this field - or the function specified (FIELD 3, VF_METHODNAME). If you don't verify, the data may be garbage (for examle 'c:\winnt' set as email in User Datamanager). |
#4
|
|||
|
|||
![]()
Thanks, Kirbs - you hit the nail on the head.
Quote:
|
#5
|
||||
|
||||
![]()
I think if there are no further checks in presave(), the data will just be written to the database.
At least this is how the User Datamanager behaves (with c:\winnt as eMail). This might cause inconsistent data. However, it should not cause mySQL-Errors. But if you also set clean to false, the datatype will not be checked - and you might run into mySQL Errors and SQL injection vulnerbilities. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|