CN107995153A - Form data verification method and form data verification device - Google Patents

Form data verification method and form data verification device Download PDF

Info

Publication number
CN107995153A
CN107995153A CN201610958900.6A CN201610958900A CN107995153A CN 107995153 A CN107995153 A CN 107995153A CN 201610958900 A CN201610958900 A CN 201610958900A CN 107995153 A CN107995153 A CN 107995153A
Authority
CN
China
Prior art keywords
parameter
rule
form data
parameter rule
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610958900.6A
Other languages
Chinese (zh)
Other versions
CN107995153B (en
Inventor
许凤强
黄银锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201610958900.6A priority Critical patent/CN107995153B/en
Publication of CN107995153A publication Critical patent/CN107995153A/en
Application granted granted Critical
Publication of CN107995153B publication Critical patent/CN107995153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a kind of form data verification method and form data verification device;Method includes:The method for obtaining form data is performed in list program, obtains the form data submitted in the page;The type for the parameter that the form data includes is analyzed, determines the title of the parameter rule for being verified to the parameter value of respective type parameter;Determine to be packaged with the parameter rule object of the parameter rule, transmit the parameter value of the parameter to corresponding parameter rule object;The parameter rule encapsulated in relevant parameter rule objects is performed in each parameter rule object, the parameter value received is verified;Verification result is exported by parameter rule object interface.Implement the present invention, the development efficiency of list program can be lifted, avoid the problem that being difficult to positioning during the error of list program.

Description

Form data verification method and form data verification device
Technical field
The present invention relates to network communication technology, more particularly to a kind of form data verification method and form data verification dress Put.
Background technology
Internet is generally used at present, and user can use various types of services based on internet, such as online Social activity, shopping at network etc..During user uses network service, the industry of verification form data is inevitably involved Business, obtains the parameter value submitted for different parameters of user to form form data by list, form data is verified Whether meet parameter rule, security breaches can be avoided, prevent the malicious intrusions to server.
For example, user terminal installation network application (such as social networking application, shopping application) client and it is expected registration (or Logging in) account is in use, list program obtains the various form datas for being used to register (or log in) that user submits, such as user name Title, password, phone and E-mail address etc., submit to whether server authentication meets relevant parameter rule, such as form data Whether the character types do not supported are included, and whether length meets the requirements.
However, the list program that correlation technique provides is retouched using the character string of such as regular expression or other forms State parameter rule:
On the one hand it is actual to answer, it is necessary to for the different corresponding character strings for writing the forms such as regular expression of list rule Can not possibly be identical with the parameter rule that middle parameter rule is the form data that diversified, the different page is submitted, this is just Cause list program development inefficiency:
On the other hand, after forming list program based on the compilation of source code including character string, if there are mistake for character string (such as misspelling) can cause list program to malfunction and then cause form data authentication failed, for developer, it is difficult to The specific location of alignment error.
The content of the invention
The embodiment of the present invention provides a kind of form data verification method and form data verification device, can lift list journey The development efficiency of sequence, avoids the problem that being difficult to positioning during the error of list program.
What the technical solution of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of form data verification method, including:
The method for obtaining form data is performed in list program, obtains the form data submitted in the page;
The type for the parameter that the form data includes is analyzed, is determined for the parameter value progress to respective type parameter The title of the parameter rule of verification;
Determine to be packaged with the parameter rule object of the parameter rule, transmit the parameter value of the parameter to corresponding parameter Rule objects;
The parameter rule encapsulated in relevant parameter rule objects is performed in each parameter rule object, to what is received Parameter value is verified;
Verification result is exported by parameter rule object interface.
Second aspect, the embodiment of the present invention provide a kind of form data verification device, including:
Acquiring unit, the device of form data is obtained for being performed in list program, obtains the list submitted in the page Data;
Analytic unit, the type of the parameter included for analyzing the form data, determines to be used to join respective type The title for the parameter rule that several parameter values is verified;
Transfer unit, for determining to be packaged with the parameter rule object of the parameter rule, transmits the parameter of the parameter It is worth to corresponding parameter rule object;
Authentication unit, for performing the parameter encapsulated in relevant parameter rule objects rule in each parameter rule object Then, the parameter value received is verified;
Output unit, for exporting verification result by parameter rule object interface.
The third aspect, the embodiment of the present invention provide a kind of form data verification device, including memory and processor;It is described Executable instruction is stored with memory, the executable instruction is used to perform form data verification provided in an embodiment of the present invention Method.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, executable instruction are stored with, for performing the present invention The form data verification method that embodiment provides.
The embodiment of the present invention has the advantages that:
On the one hand,, can be with during for being verified to same type of parameter using by the scheme of parameter rule objectification Multiplexing parameters rule objects verify parameter, avoid and character string descriptor is used alone for same type of each parameter Situation, improve the development efficiency of list program;
On the other hand, using by the scheme of parameter rule objectification, since the compilation tool of list program source code is primary Support to whether there is misspelling in identifying object and prompted, avoiding problems correlation technique to use character string characterising parameter When regular, if character string there is misspelling caused by parameter rule configuration error situation.
Brief description of the drawings
Fig. 1-1 is an optional function structure schematic diagram of list program in the embodiment of the present invention;
Fig. 1-2 is one optional structure diagram of dictionary of list program in the embodiment of the present invention;
Fig. 1-3 is one optional structure diagram of dictionary of list program in the embodiment of the present invention;
Fig. 2 is an optional software and hardware structure schematic diagram of form data verification device in the embodiment of the present invention;
Fig. 3 is one optional flow diagram of form data verification method in the embodiment of the present invention;
Fig. 4-1 is an optional configuration diagram of form data verification device in the embodiment of the present invention;
Fig. 4-2 is an optional configuration diagram of form data verification device in the embodiment of the present invention;
Fig. 5 is an optional illustrative view of functional configuration of form data verification device in the embodiment of the present invention.
Embodiment
The present invention is further described in detail below with reference to the accompanying drawings and embodiments.It is it should be appreciated that mentioned herein Embodiment only to explain the present invention, is not intended to limit the present invention.In addition, embodiment provided below is to be used to implement The section Example of the present invention, rather than the whole embodiments for implementing the present invention are provided, creation is not paid in those skilled in the art Property work on the premise of, the embodiment of gained is recombinated to the technical solutions of following embodiments and based on to invention institute reality The other embodiment applied belongs to protection scope of the present invention.
It should be noted that in embodiments of the present invention, term " comprising ", "comprising" or its any other variant are intended to Cover non-exclusive inclusion, so that method or device including a series of elements not only will including what is be expressly recited Element, but also including other elements that are not explicitly listed, or further include for implementation or device it is intrinsic will Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Method either also there are other relevant factor (such as the step in method or unit in device) in device.
For example, form data verification method provided in an embodiment of the present invention contains a series of step, but it is of the invention The form data verification method that embodiment provides is not limited to described step, similarly, list provided in an embodiment of the present invention Data verification device includes a series of units, but form data provided in an embodiment of the present invention verification device is not limited to include The unit being expressly recited, can also include the list of required setting during to obtain relevant information or handled based on information Member.
Before the present invention will be described in further detail, the noun involved in the embodiment of the present invention and term are said Bright, noun and term involved in the embodiment of the present invention are suitable for following explanation.
1) list, also referred to as list program, list are mainly responsible for data acquisition function in webpage.List has three substantially Part:Form tags, form fields and list button.
2) form data, including form parameters and corresponding parameter value, for example, for user information form data and Speech, including user's name, user cipher, E-mail address and telephone number etc., and " king * ", " 123 " " wang*@ User.com " and " 1338888**** " are corresponding parameter value, wherein " * " is the asterisk wildcard for representing any character.
3) parameter rule, parameter need the rule met, such as the optional scope of character, word in different business scenarios The length of symbol, including during user's registration network service, the type and length of the character that the user name of registration, password can use, Usually, using the mode characterising parameter rule of regular expression.
4) parameter rule object, the packaging body verified to form data based on parameter rule, including data and operation Two parts, are described using computer language (such as Go language), by one group of attribute and the one group of clothes operated to this group of attribute Business is formed.
5) parameter rule interface, the interface to access to parameter rule object that parameter rule object is provided to outside, The serial of methods that parameter rule object provides, such as the method for verification form data, proof list are stated in parameter rule interface The method that error message is returned during forms data mistake.
6) miscue information, when the parameter that user submits is unsatisfactory for parameter rule, returns to the information of user, prompts wrong Type, such as length not enough or beyond maximum length, does not support some type of character of input etc. by mistake.
7) Beego validation components, the solution of parameter rule is configured by character string, is retouched by character string The rule that form data needs to meet is stated, when verifying form data, verifies form data one by one by way of parsing character string In each parameter value whether meet parameter rule.
Exemplified by first below between user and service background by http communication, the net submitted to correlation technique to user The mode that network parameter is verified illustrates.
The acquisition and verification of parameter based on HTTP transmission are the business that are generally used in network service procedure, apply with In the scene of family registered network service and logging in network service, the form data that user submits includes parameter and parameter value Carrying is sent to service background in HTTP request, and what service background verification user submitted be used to register or logging in network service Whether parameter value meets relevant parameter rule, and parameter value can just use after all having to pass through stringent verification, it is no it will cause The problem of network service cannot use, and security breaches etc. are various potential.
For example, have submitted the E-mail address user#serviece.com of mistake during user's registration network service, if The rule that the E-mail address that service background is not submitted user verifies whether to meet E-mail address including "@" (such as whether accord with Number), if follow-up user forgets Password, user can be caused can not to be continuing with the network service of the account.
In another example if when user's registration network service have submitted the phone number of mistake:131******* (wherein wildcards Symbol " * " represents a numeral), if the phone number that service background is not submitted user verifies whether the rule for meeting phone number Then (such as length 11, is numeral), if follow-up user forgets Password, can cause user can not the mode of mobile phone verification give for change Password, leads to not be continuing with registered network service, and loss is brought to user.
Correlation technique provides the form data that user's submission is verified using the mode of Beego validation components.Example Such as, by character string characterising parameter rule, by the parameter rule for parsing character string descriptor.Use Beego validation groups During part certificate parameter, the rule (parameter rule) that the form data of user's submission needs to meet is configured by character string.
By taking user submits personal information as an example, it is assumed that the parameter and corresponding rule that userspersonal information includes be:
Sequence number, user's sequence number are needed for integer variable;
Title, character type variable, such as title cannot be empty and be started with " Bee ";
Age:Integer variable, value range meet 1<=the age<=140, the term of validity is not beyond the parameter of this scope Legal parameter;
E-mail address, character type variable, meets email address form as included "@", and length cannot exceed in length Limit such as 100 characters;
Mobile Directory Number, character type variable, length meet conventional mobile phones length requirement;
IP address, character type variable.
An example using parameter and the relevant parameter rule of the above-mentioned personal information of character string descriptor is:
Code 1
During scheme based on Beego validation component verification parameters, described using the mode such as code 1 above-mentioned The parameter rule that the relevant parameter of userspersonal information and its needs meet, in the correlation for the personal information for receiving user's submission During parameter, by way of parsing above-mentioned code 1, judge whether the parameter value for the parameter that user submits meets each parameter pair one by one The rule answered.
In this implementation there are it is following the problem of:
Problem 1) for each type parameter verification, it is necessary to be existed respectively using the character string of the form such as regular expression Parameter rule described in list program, causes the development efficiency of list program low.
Problem 2) parameter rule is described using character string, character can not be checked in the code compilation process of list program The misspelling of string, causes list program when something goes wrong, it is difficult to investigates the position for occurring mistake in list program.
Problem 3) in the rule of character string descriptor, flexible configuration adjustment can not be carried out to the miscue of parameter.
For example, for above-mentioned code 1, if necessary to change the miscue of Id fields, it is also necessary to code 1 again into Row coding work, to change the rule of the corresponding Id of character string descriptor.As it can be seen that when the parameter rule for needing modification multiple parameters When, it is necessary to carry out substantial amounts of coding work to code 1.
Regarding to the issue above 1) and problem 2), the embodiment of the present invention is provided the scheme of parameter rule objectification, by parameter Rule is encapsulated as that parameter value is carried out to verify whether the parameter rule object for meeting parameter rule, primary to ginseng using compilation tool Number rule objects support the wrong characteristic that checks spelling, and solve directly to use character string characterising parameter in list program source code Rule can not detect the problem of misspelling.
Regarding to the issue above 3), the embodiment of the present invention provides the side that message content parameter is set in parameter rule object Case, message content parameter and one an object of parameter rule object, it is wrong to can be used for output when control verification form data makes mistake The mode of prompt message by mistake, realizes and is flexibly controlled by output of the granularity to miscue information of parameter rule object.
Fig. 1-1 is an optional illustrative view of functional configuration of list program provided in an embodiment of the present invention, in Fig. 1-1 In, parameter rule object is turned into parameter rule object, is packaged with parameter rule object and the parameter value of parameter is verified whether Meet the operation of parameter rule, parameter, parameter rule and the parameter that unified recording different types are carried out by global dictionary are advised The then mapping relations between object.
For example, in dictionary, each parameter rule corresponds to the parameter of a type, and each parameter rule passes through a rule Object is described, and is packaged with corresponding parameter rule at this time, in rule objects, exemplarily, can be used so in dictionary Mode:Parameter (is identified)-parameter rule (with the name identification of parameter rule)-parameter rule object with the title of parameter (with the name identification of parameter rule object).
For the parameter of user's name type, programming language can be used to describe:User's name-user's name parameter Correspondence between regular (title)-user's name parameter rule object (title), so that based on parameter in form data Type, it may be determined that verified using which corresponding parameter rule object.
For another example in dictionary, each parameter rule corresponds to the parameter of a type, and each parameter rule can pass through Multiple parameters rule objects are described, that is, parameter rule disperses to be packaged in multiple parameters rule objects.
The subset for being packaged with parameter rule in each parameter rule object at this time (is namely packaged with the parameter rule of part Then), the intersection of the parameter rule encapsulated in multiple parameters rule objects forms the parameter rule corresponding to parameter.
By way of parameter rule is converted to parameter rule object in advance, for the parameter using same proof rule Verification for, as long as to the parameter rule object Transfer Parameters parameter value i.e. may verify whether to meet parameter rule, it is not necessary to Corresponding character string is write for each parameter, has been obviously improved the development efficiency of list program.
In the source code of list program, parameter rule is described by parameter rule object, so based on table When the compilation of source code of one way sequence forms executable list program, once there are misspelling in the description of parameter rule object By mistake, due to compilation tool have the function of it is primary to parameter rule object progress error checking, using programming language Compilation phase such as the source code for the list program that GO language is realized understands output error message, so that developer can have found in time Mistake existing for the parameter rule encapsulated in parameter rule object is simultaneously modified.
In addition, for each parameter rule object, wherein message content parameter can be configured, for controlling for list When the parameter value verification of parameter does not meet parameter rule in data, the specifying information for not meeting parameter rule how is exported, such as Character types do not support, character length is so flexible, meet parameter error in business with open arms and prompt less than minimum length etc. Customized demand.
In the source code of list program provided in an embodiment of the present invention, also relate to and the interface of parameter rule object (is claimed For parameter rule object interface) definition, parameter rule object interface provide interacted with external object parameter rule object Mode, in parameter rule object statement have following method:
To the verification method of the parameter value of parameter;
The method of parameter value getparms;
The method that error message is returned during authentication error;
The method that parameter must be filled out is set;
The method for obtaining list title;
The method that the title of list is set.
Realize that the example that the code of above-mentioned parameter rule objects interface is realized is as follows in the source code of list program:
Code 2:
The list program that compilation of source code based on above-mentioned list program is formed, runs in form data verification device, Form data verification device can be deployed in distribution and be deployed in server/customer end (terminal that client runs on user side be set It is standby) in the network service system of framework, the double verification of form data, client validation success are carried out in client and server When ability submission form data verified to server, so to client validation failure form data can be without carrying Hand over, mitigate the pressure of server;Certainly, form data verification device can be also only deployed in network side server, only serviced Device carries out the verification of form data.
The hardware resource realization of terminal device or network side server that form data verification device can be based on user side, Optional software and hardware architecture of the device in user side terminal device or network side server is verified referring to the form data shown in Fig. 2 Realize schematic diagram, in fig. 2, form data verification device 10 includes hardware layer, intermediate layer, operating system layer and software layer.So And it will be understood by those of skill in the art that the structure of the form data verification device 10 shown in Fig. 2 is merely illustrative, not structure The restriction of paired form data verification 10 structure of device.For example, form data verification device 10 can need to set according to implementation Omission setting unit component is needed compared with the more components of Fig. 2, or according to implementation.
Form data verification device 10 hardware layer include processor 11, input/output interface 13, storage medium 14 and Network interface 12, component can be through system bus connection communications.
Processor 11 can use central processing unit (CPU), microprocessor (MCU, Microcontroller Unit), specially With integrated circuit (ASIC, Application Specific Integrated Circuit) or logic programmable gate array (FPGA, Field-Programmable Gate Array) is realized.
Input/output interface 13 can use such as display screen, touch-screen, loudspeaker input/output device to realize.
Storage medium 14 can use the non-volatile memory mediums such as flash memory, hard disk, CD to realize, can also use double The volatile storage mediums such as rate (DDR, Double Data Rate) dynamic buffering are realized, wherein being stored with to perform above-mentioned table The executable instruction of forms data verification method.
Exemplarily, storage medium 14 can verify the other assemblies concentrated setting of device 10 with form data, can also Verify that the other assemblies in device 10 are distributed relative to form data to set.Network interface 12 provides external data to processor 11 Such as the access ability for the storage medium 14 that strange land is set, exemplarily, network interface 12 can be based on near-field communication (NFC, Near Field Communication) technology, bluetooth (Bluetooth) technology, purple honeybee (ZigBee) technology carry out closely lead to Letter, furthermore it is also possible to realize such as based on CDMA (CDMA, Code Division Multiple Access), wideband code division The communication standards such as multiple access (WCDMA, Wideband Code Division Multiple Access) and its evolution standard it is logical Letter.
Drive layer include be used for for operating system 16 identify hardware layer and with the middleware 15 of each assembly communication of hardware layer, example It such as can be the set for the driver of each component of hardware layer.
Operating system 16 be used for user oriented graphical interfaces is provided, exemplarily, including plug-in unit icon, desktop background and Application icon, operating system 16 support user via the control embodiment of the present invention of the graphical interfaces to equipment to the soft of the said equipment Part environment such as OS Type, version does not limit, for example, can be (SuSE) Linux OS, UNIX operating system or other Operating system.
Application layer operation has list program 17, for obtaining form data and verifying the parameter value of each parameter in form data Whether parameter rule is met.
Based on the list program run in Fig. 1 in user side terminal device or network side server, to list program into The processing procedure of row form data verification illustrates.
Fig. 3 is an optional flow diagram of form data verification method provided in an embodiment of the present invention, including with Lower step:
Step 101, the method for obtaining form data is performed in list program, user is obtained and is submitted in the page of list Form data.
For list program, form tags therein contain the processing all general Gateway Interface of form data The same finger URL (URL) and data of (CGI, Common Gateway Interface) program are submitted to the side of server Method.
Form fields in list program include various for inputting (or selection) parameter value for all kinds parameter Operation box, exemplarily, including:
1) text box (including single-line text boxes and multiline text frame), for the form object of user's input content, usually quilt For filling in single word or brief answer, such as name, address;
2) password box, for inputting the form object of password for user;
3) Hidden field, for collecting or sending the invisible element of information, Hidden field is sightless for a user. When form data is submitted, information will be sent on server by Hidden field with the title and value defined when setting;
4) check box, choose in constraint term more than one of option, each check box is an independent element, is had Unique title;
5) choice box is pulled down, frame allows the limited space of user one to set a variety of options;
6) file uploads frame, the file for supporting user to upload, and contains a navigation button, and user can be needed by inputting The file that navigation button selection needs to upload is clicked in the path for the file to be uploaded.
It in addition, list program further includes list button, such as can be submitting button, reset button and general button, use In the CGI scripting transferred data on server or cancel input, with list button other can also be controlled to define Handle the processing work of script.
In the source code of list program, parameter acquiring method is stored in controller (Controller) generation of list program In code module, acquisition methods can be used directly in the subclass of controller.Parameter acquiring method is divided into by the property of parameter Parameter, optional parameters and the parameter that ad hoc rules must is fulfilled for after filling in must be filled out, is illustrated below.
In one embodiment, in the implementation procedure of list program, by obtaining the method for mandatory parameter in list number Optional parameters is obtained in form data according to the parameter value of interior acquisition mandatory parameter, and the method by obtaining optional parameters Parameter value.So-called mandatory parameter is the parameter that user must submit relevant parameter in forms pages, such as is taken for logging in network For business, username and password is mandatory parameter, and for registered network service, personal preference information is optional parameters, The namely inessential parameter for submitting related parameter values.
The example that form data is obtained in the source code of list program is as follows:
Code 3
var p data.Product
This.GetRequired (&p.Name, " name ", " product.name ") // obtain and must fill out parameter
This.GetOptional (&p.Desc, " desc ", " product.desc ") // obtain optional parameters
In above-mentioned code 3, the parameter value that must fill out parameter is obtained by this.GetRequired () method, is passed through GetOptional () method obtains the parameter value of optional parameters;The control of this.GetRequired () method is existed using form fields Presentation and the relevant text box of mandatory parameter, combobox etc. in the page of list, obtain the mandatory parameter of user's input or selection Parameter value.
Step 102, the type for the parameter that form data includes is analyzed, determines to carry out the parameter value of respective type parameter The title of the parameter rule of verification.
As an example, identify that the realization of the type of different parameters is as follows in the source code of list program:
Code 4
In practical application, except identifying above-mentioned E-mail address type, URL types, telephone number-type in list program Parameter, can also identify the parameter type of 32 integers of injection, 64 integers, 32 floating types and 64 floating types.
In one embodiment, the type for the parameter that form data includes is analyzed, is become based on the type of parameter in the overall situation The title of the corresponding at least one parameter rule of parameter of respective type is searched in amount.
For example, in the global variable RuleMap of the source code of list program, for different types of parameter, record ginseng Correspondence between number, parameter rule title, one or more parameter rule objects.
The optional example of one of RuleMap is in the source code of list program:
Code 4
Web.RuleMap=map [string] [] rule.IRule
// commodity classification
" product.name ":[] rule.IRule { rule.NewRule (rule.VALUE_TYPE_STR, " trade names Claim " .MIN (1) },
" product.desc ":[] rule.IRule { rule.NewRule (rule.VALUE_TYPE_STR, " commodity letters Jie ") }
" product.detail ":[] rule.IRule { rule.NewRule (rule.VALUE_TYPE_STR, " commodity Details ") }
}
In above-mentioned code 4, by taking the form data of commodity classification as an example, parameter type is the parameter value of product.name Use the corresponding parameter rules of VALUE_TYPE_UINT64;Parameter name is that the parameter value of product.desc uses parameter class The corresponding parameter rules of type VALUE_TYPE_UINT64;Parameter name is that the parameter value of product.detail uses parameter class The corresponding parameter rules of type VALUE_TYPE_UINT64;The corresponding parameter rules of VALUE_TYPE_UINT64 are advised by which parameter Then object implementatio8 is also realized in global variable, is not shown in above-mentioned code 4.
Step 103, determine to be packaged with the parameter rule object of parameter rule, the parameter value of Transfer Parameters to corresponding parameter Rule objects.
It is to be appreciated that parameter rule is formulated according to the actual demand of different business:
For example, for the parameter of integer type, parameter rule can be the size for regulation argument of type integer value, than Such as provide the value range of argument of type integer value, it is 1~1000 such as to provide value range.
For the parameter of character types, parameter rule can be the length of regulation character string, such as provide character string Shortest length, maximum length, or the section of length.
For the parameter of E-mail address type, parameter rule can be that regulation includes "@", and behind E-mail address The E-mail address suffix match provided with known webserver provider is provided.
For the parameter of URL address styles, parameter rule can be that regulation includes " HTTP " or " HTTPS ".
It is, of course, also possible to formulate regular expression rule, the parameter for enumeration type and the ginseng for Boolean type Number specific aim specifies parameter rule.
As it was previously stated, the title based on parameter rule, finds in global variable (dictionary) and is packaged with parameter rule During parameter object, it is understood that there may be the situation that parameter rule is realized by a parameter rule object or multiple parameters rule objects:
1) if the parameter value of parameter is only passed to the parameter by parameter rule only by a parameter rule object implementatio8 Whether rule objects, the parameter value of parameter meet the verification result that parameter rule needs to refer to this parameter rule object.
For example, for the parameter of user's name type, such 1 parameter rule can be needed:1) character string is grown Degree is no more than 20.There is the parameter rule object for being packaged with relevant parameter rule for above-mentioned parameter rule, it is assumed that be parameter Rule objects 1;So, E-mail address is delivered separately to parameter rule object 1.
Referring to an optional structure diagram of the dictionary shown in Fig. 1-2, in Fig. 1-2, for user's name type Parameter for, corresponding parameter rule is not shorter than 16 for character length, can determine to need call parameters to advise based on dictionary Then object (encapsulation is not shorter than the parameter rule of 16) is verified.
2) if parameter rule is realized by multiple parameters rule objects, then illustrates to seal in this multiple parameters rule objects A subset equipped with parameter rule, the intersection of the subset of each parameter rule object encapsulation just forms parameter rule, then by parameter Parameter value pass to corresponding multiple parameters rule objects, whether the parameter value of parameter, which meets parameter rule, needs to refer to accordingly The verification result of multiple parameters rule objects.
For example, for the parameter of E-mail address type, such multiple parameters rule can be needed:2) character string is grown Degree is no more than 30;3) "@" is included;4)@suffix is the e-mail suffix that known network provider server provides.For above-mentioned 3 parameter rules are respectively present the parameter rule object for being packaged with relevant parameter rule, it is assumed that are parameter rule object 2,3 and 4; So, E-mail address is delivered separately to parameter rule object 2,3 and 4.
Referring to an optional structure diagram of the dictionary shown in Fig. 1-3, in fig. 1-3, for telephone number-type Parameter for, corresponding parameter rule is that length is 11 and the first numeral is 1, can determine to need to call ginseng based on dictionary Number rule objects (package length is 11 parameter rule) and parameter rule object (parameter rule that the first numeral of encapsulation is 1) Verified.
In addition, the parameter that same parameters rule objects can be multiplexed with for multiple type parameters is verified, ginseng is realized The effect of number rule objects multiplexing, compared with correlation technique is write for the character string of verification for the parameter of each type, effect Rate higher.Illustrated with reference to Fig. 1-2.
Referring to an optional structure diagram of the dictionary shown in Fig. 1-2, in Fig. 1-2, for user's name type Parameter for, corresponding parameter rule is not shorter than 16 for character length, for the parameter of password type, for user For the parameter of name type, corresponding parameter value call parameters rule objects (not being shorter than 16) are verified, for password For the parameter of type, corresponding parameter value call parameters rule objects (encapsulation is not shorter than the parameter rule of 16) and parameter The rule objects parameter rule of underscore and upper and lower case letter (encapsulation include) are verified, (are encapsulated not for parameter rule object It is shorter than the parameter rule of 16) realize multiplexing.
Step 104, the parameter rule encapsulated in relevant parameter rule objects is performed in each parameter rule object, to being connect The parameter value of receipts is verified.
Step 105, verification result is exported by parameter rule object interface.
The method that miscue information is returned defined in parameter rule interface, is not inconsistent in the parameter value of the parameter received It is defeated by the predefined message content parameter encapsulated in parameter rule object when closing the parameter rule of parameter rule object encapsulation The parameter value for going out parameter does not meet the miscue information of corresponding parameter rule.
For example, 1) for the parameter of user's name type, if corresponding parameter rule is:A) character types are word Symbol;B) character length is no more than 15.So, for the parameter rule object for verifying user's name, can configure wherein Different message content parameters, to realize the flexible self-defined setting of output error message, exemplarily, can there is following two Kind situation:
Situation 1), for configuration exports the message content parameter of detailed error message in parameter rule object, When the user's name that the user of acquisition submits includes numeral, then the mistake for exporting such as " user's name cannot include numeral " carries Show information, the miscue letter of such as " user's name length is long " is then exported when the user's name that user submits exceeds 15 Breath.
Situation 2), for the message content parameter that only output error message is configured in parameter rule object, when obtaining The user's name that the user taken submits includes numeral, alternatively, when the user's name that user submits exceeds 15, only exports user name The information of mistake is weighed up, without prompting foregoing specific the reason for malfunctioning.
For the developer of list program, when developing list program for different web pages, webpage 1 and webpage 2 are set to, If webpage 1 for security consideration, only wants to prompting user name mistake when user submits the user's name mistake logged in, and The reason for being not intended to further prompting mistake (such as user name cannot include numeral), it is different from webpage 1, needed in webpage 2 The concrete reason (such as user name mistake) of prompting mistake when user submits the user's name mistake logged in, then developer only needs Corresponding message content parameter is set in the parameter rule object of user name type, it is not necessary to for webpage 1 and webpage 2 List program source code in be to be realized with programming language, by setting message content parameter can spirit in parameter rule object The mode of the miscue information of control output living, improves the development efficiency of list program.
Referring to an optional framework signal of the form data provided in an embodiment of the present invention verification device shown in Fig. 4-1 Figure, form data verify device Distributed Implementation in the terminal device of user side and the service background of network side.User passes through terminal Client (such as browser) login service backstage of equipment is with using network service, for example, E-mail address, online social activity etc..
The terminal device table one way sequence of user side, obtains user and inputs form data, including username and password, lead to The mode for calling relevant parameter rule objects is crossed, username and password is carried out to verify whether the corresponding user name parameter met Rule and cryptographic parameter rule, if do not met, provide miscue information, prompt user's input error.In this way, for symbol Service background will not be submitted to by closing the form data of parameter rule, alleviate the data processing pressure of service background.
If the form data that the list program verification user of user side terminal device operation submits meets user name parameter Rule and cryptographic parameter rule, then be submitted to service background by form data.
The mode of relevant parameter rule objects in service background table one way sequence, to the form data from user side after It is continuous to be verified, if to meet user name parameter rule and cryptographic parameter rule:
If 1) do not met, miscue information is returned to the list program of user side, according to user's name and password The message content parameter set in the parameter rule object of the parameter of type, is prompted:
Situation 1), for configuration exports the message content parameter of detailed error message in parameter rule object, When the user's name that the user of acquisition submits includes numeral, then the mistake for exporting such as " user's name cannot include numeral " carries Show information, the mistake that such as " user's name length is long " is then exported when the user's name that user submits exceeds maximum length carries Show information.
Situation 2), for the message content parameter that only output error message is configured in parameter rule object, when obtaining The user's name that the user taken submits includes numeral, alternatively, when the user's name that user submits exceeds maximum length, only exports The information of user's name error, without prompting foregoing specific the reason for malfunctioning.
If 2) met, continue to verify whether user is lawful registration user, be when verifying that user is validated user User completes to log in.
Between user side and service background transmit network parameter mode, can use as hypertext transfer protocol (HTTP, Hyper Text Transfer Protocol), secure version-hypertext transfer protocol based on security socket layer of HTTP (HTTPS, Hyper Text Transfer Protocol over Secure Socket Layer) etc..For HTTP modes Communication for, for user side by HTTP request to service background Transfer Parameters, supporting please by the HTTP of GET or POST modes Ask to service background and submit parameter.
Show referring back to an optional framework of the form data provided in an embodiment of the present invention verification device shown in Fig. 4-2 It is intended to, form data verifies device Distributed Implementation in the terminal device of user side and the service background of network side.User passes through end Client (such as browser) login service backstage of end equipment is with using network service, for example, E-mail address, online social activity etc..
The terminal device table one way sequence of user side, obtains when user needs registered network service account in forms pages The form data of input, including it is expected the username and password used, form data is directly submitted to service background, after service Form data of the platform table one way ordered pair from user side is verified, if meets user name parameter rule and cryptographic parameter Rule,
If do not met, according in the message set in the parameter rule object of user's name and the parameter of password type Hold parameter, carry out error message prompting:
Situation 1), for configuration exports the message content parameter of detailed error message in parameter rule object, When the user's name that the user of acquisition submits includes numeral, then the mistake for exporting such as " user's name cannot include numeral " carries Show information, the mistake that such as " user's name length is long " is then exported when the user's name that user submits exceeds maximum length carries Show information.
Situation 2), for the message content parameter that only output error message is configured in parameter rule object, when obtaining The user's name that the user taken submits includes numeral, alternatively, when the user's name that user submits exceeds maximum length, only exports The information of user's name error, without prompting foregoing specific the reason for malfunctioning.
If met, continue to verify whether user is lawful registration user, be use when verifying that user is validated user Complete to log in family.
One optional functional structure of foregoing form data verification device is illustrated, referring to the list shown in Fig. 5 One optional illustrative view of functional configuration of data verification device, including:Acquiring unit 21, analytic unit 22, transfer unit 23, Authentication unit 24, output unit 25 and statement unit 26, illustrate separately below.
Acquiring unit 21, the device of form data is obtained for being performed in list program, obtains the table submitted in the page Forms data.
In one embodiment, acquiring unit 21, are additionally operable to obtain in form data by the device for obtaining mandatory parameter The parameter value of mandatory parameter is taken, and obtains the parameter of optional parameters in form data by obtaining the device of optional parameters Value.
In the source code of list program, parameter acquiring method is stored in the controller (Controller) of list program In, acquisition methods can be used directly in the subclass of controller.Parameter acquiring method is divided into by the property of parameter must fill out ginseng Number, optional parameters and the parameter that ad hoc rules must is fulfilled for after filling in.
Analytic unit 22, the type of the parameter included for analyzing form data, determines to be used for respective type parameter The title of parameter rule verified of parameter value.
In one embodiment, analytic unit 22, are additionally operable to analyze the type for the parameter that form data includes, based on ginseng Several types searches the title of the corresponding at least one parameter rule of parameter of respective type in global variable.
In practical application, except identifying above-mentioned E-mail address type, URL types, telephone number-type in list program Parameter, can also identify the parameter type of 32 integers of injection, 64 integers, 32 floating types and 64 floating types.
For example, in the global variable RuleMap of the source code of list program, for different types of parameter, record ginseng Correspondence between number, parameter rule title, one or more parameter rule objects.
Transfer unit 23, for determining to be packaged with the parameter rule object of parameter rule, the parameter value of Transfer Parameters to phase The parameter rule object answered.
In one embodiment, transfer unit 23, are additionally operable to the title based on parameter rule, are found in global variable It is packaged with least two parameter rule objects of partial parameters rule, and the parameter encapsulated at least two parameter rule objects The intersection of rule is parameter.
It is to be appreciated that parameter rule is formulated according to the actual demand of different business:
For example, for the parameter of integer type, parameter rule can be the size for regulation argument of type integer value, than Such as provide the value range of argument of type integer value, it is 1~1000 such as to provide value range.
For the parameter of character types, parameter rule can be the length of regulation character string, such as provide character string Shortest length, maximum length, or the section of length.
For the parameter of E-mail address type, parameter rule can be that regulation includes "@", and behind E-mail address The E-mail address suffix match provided with known webserver provider is provided.
It is, of course, also possible to formulate URL addresses rule, regular expression rule and is directed to parameter for enumeration type The parameter specific aim of Boolean type specifies parameter rule.
Authentication unit 24, for performing the parameter encapsulated in relevant parameter rule objects rule in each parameter rule object Then, the parameter value received is verified.
Output unit 25, for exporting verification result by parameter rule object interface.
The method that miscue information is returned defined in parameter rule interface, is not inconsistent in the parameter value of the parameter received When closing the parameter rule of parameter rule object encapsulation, authentication unit 24 passes through the predefined message that is encapsulated in parameter rule object Content parameters, the parameter value of output parameter do not meet the miscue information of corresponding parameter rule.
For example, 1) for the parameter of user's name type, if corresponding parameter rule is:A) character types are word Symbol;B) character length is no more than 15.So, for the parameter rule object for verifying user's name, can configure wherein Different message content parameters, to realize the flexible self-defined setting of output error message, exemplarily, can there is following two Kind situation:
Situation 1), for configuration exports the message content parameter of detailed error message in parameter rule object, When the user's name that the user of acquisition submits includes numeral, then the mistake for exporting such as " user's name cannot include numeral " carries Show information, the miscue letter of such as " user's name length is long " is then exported when the user's name that user submits exceeds 15 Breath.
Situation 2), for the message content parameter that only output error message is configured in parameter rule object, when obtaining The user's name that the user taken submits includes numeral, alternatively, when the user's name that user submits exceeds 15, only exports user name The information of mistake is weighed up, without prompting foregoing specific the reason for malfunctioning.
For the developer of list program, when developing list program for different web pages, webpage 1 and webpage 2 are set to, If webpage 1 for security consideration, only wants to prompting user name mistake when user submits the user's name mistake logged in, and The reason for being not intended to further prompting mistake (such as user name cannot include numeral), it is different from webpage 1, needed in webpage 2 The concrete reason (such as user name mistake) of prompting mistake when user submits the user's name mistake logged in, then developer only needs Corresponding message content parameter is set in the parameter rule object of user name type, it is not necessary to for webpage 1 and webpage 2 List program source code in be to be realized with programming language, by setting message content parameter can spirit in parameter rule object The mode of the miscue information of control output living, improves the development efficiency of list program.
Unit 26 is stated, for stating following methods in parameter rule object interface:Obtain the device of form data;Test The device of output error message when demonstrate,proving form data failure;The device of mandatory parameter is set;Set and obtain the dress of list title Put.
In practical application, each unit in form data verification device 20 can be by user side terminal device or network-side service Hardware resource in device is realized, such as the executable instruction (list stored as the processor shown in Fig. 2 by performing in storage medium The executable instruction of program) realize.
In conclusion the embodiment of the present invention has the advantages that:
1) using by the scheme of parameter rule objectification, during for being verified to same type of parameter, can be multiplexed Parameter rule object verifies parameter, avoids the feelings that character string descriptor is used alone for same type of each parameter Condition, improves the development efficiency of list program;
2) use the scheme of parameter rule objectification, verification is supported since the compilation tool of list program source code is primary It whether there is misspelling in object and prompted, avoiding problems parameter rule configuration error caused by misspelling.
3) object-based error message allocation plan, support miscue information to output using parameter rule object as Granularity is adjusted, and is avoided developer from reusing the work of programming language adjustment miscue information, is realized mistake and carry Show the business demand of the personalized customization of message.
It will be appreciated by those skilled in the art that:Journey can be passed through by realizing all or part of step of above method embodiment Sequence instructs relevant hardware to complete, and foregoing program can be stored in a computer read/write memory medium, which exists During execution, execution the step of including above method embodiment;And foregoing storage medium includes:Flash memory device, deposit at random Access to memory (RAM, Random Access Memory), read-only storage (ROM, Read-Only Memory), magnetic disc or CD etc. is various can be with the medium of store program codes.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and is used as independent product Sale in use, can also be stored in a computer read/write memory medium.Based on such understanding, the present invention is implemented The part that the technical solution of example substantially in other words contributes correlation technique can be embodied in the form of software product, The computer software product is stored in a storage medium, including some instructions are used so that computer installation (can be with It is personal computer, server or network equipment etc.) perform all or part of each embodiment the method for the present invention. And foregoing storage medium includes:Flash memory device, RAM, ROM, magnetic disc or CD etc. are various can be with store program codes Medium.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (14)

  1. A kind of 1. form data verification method, it is characterised in that including:
    The method for obtaining form data is performed in list program, obtains the form data submitted in the page;
    The type for the parameter that the form data includes is analyzed, is determined for being verified to the parameter value of respective type parameter Parameter rule title;
    Determine to be packaged with the parameter rule object of the parameter rule, transmit the parameter value of the parameter to corresponding parameter rule Object;
    The parameter rule encapsulated in relevant parameter rule objects is performed in each parameter rule object, to the parameter received Value is verified;
    Verification result is exported by parameter rule object interface.
  2. 2. the method as described in claim 1, it is characterised in that described that the side for obtaining form data is performed in list program Method, obtains the form data submitted in the page, including:
    Method by obtaining mandatory parameter obtains the parameter value of mandatory parameter in the form data, and can by obtaining The method of parameter is selected to obtain the parameter value of optional parameters in the form data.
  3. 3. the method as described in claim 1, it is characterised in that the parameter for analyzing the form data and including, determines Title for the parameter rule verified to the parameter value of the parameter, including:
    The type for the parameter that the form data includes is analyzed, the type based on the parameter is searched accordingly in global variable The title of the corresponding at least one parameter rule of parameter of type.
  4. 4. the method as described in claim 1, it is characterised in that the parameter rule pair for determining to be packaged with the parameter rule As, including:
    Based on the title of the parameter rule, found in global variable and be packaged with least the two of the part parameter rule A parameter rule object, and the intersection of the parameter rule encapsulated at least two parameter rules object is the parameter.
  5. 5. the method as described in claim 1, it is characterised in that described to perform relevant parameter in each parameter rule object The parameter rule of encapsulation, verifies the parameter value received in rule objects, including:
    When the parameter value received does not meet the parameter rule of the parameter rule object encapsulation, pass through the parameter rule pair As the predefined message content parameter of middle encapsulation, the parameter value for exporting the parameter does not meet the prompting letter of relevant parameter rule Breath.
  6. 6. method as claimed in claim 5, it is characterised in that
    The predefined message content parameter includes at least following rank:The only miscue information of output parameter value error;It is defeated Go out the miscue information of the incongruent relevant parameter rule of parameter value.
  7. 7. the method as described in claim 1, it is characterised in that further include:
    Following methods are stated in the parameter rule object interface:The method for obtaining form data;Verify the list The method of output error message during data failure;The method that mandatory parameter is set;The method for setting and obtaining list title.
  8. 8. a kind of form data verifies device, it is characterised in that including:
    Acquiring unit, the device of form data is obtained for being performed in list program, obtains the form data submitted in the page;
    Analytic unit, the type of the parameter included for analyzing the form data, determines for respective type parameter The title for the parameter rule that parameter value is verified;
    Transfer unit, for determining to be packaged with the parameter rule object of the parameter rule, transmits the parameter value of the parameter extremely Corresponding parameter rule object;
    Authentication unit, for performing the parameter rule encapsulated in relevant parameter rule objects in each parameter rule object, The parameter value received is verified;
    Output unit, for exporting verification result by parameter rule object interface.
  9. 9. device as claimed in claim 8, it is characterised in that
    The acquiring unit, is additionally operable to obtain the ginseng of mandatory parameter in the form data by the device for obtaining mandatory parameter Numerical value, and the parameter value of optional parameters is obtained by obtaining the device of optional parameters in the form data.
  10. 10. device as claimed in claim 8, it is characterised in that
    The analytic unit, is additionally operable to analyze the type for the parameter that the form data includes, the type based on the parameter The title of the corresponding at least one parameter rule of parameter of respective type is searched in global variable.
  11. 11. device as claimed in claim 8, it is characterised in that
    The transfer unit, is additionally operable to the title based on the parameter rule, is found in global variable and is packaged with part At least two parameter rule objects of the parameter rule, and the parameter rule encapsulated at least two parameter rules object Intersection be the parameter.
  12. 12. device as claimed in claim 8, it is characterised in that
    The authentication unit, is additionally operable to when received parameter value does not meet the parameter rule of the parameter rule object encapsulation, By the predefined message content parameter encapsulated in the parameter rule object, the parameter value for exporting the parameter is not met accordingly The prompt message of parameter rule.
  13. 13. device as claimed in claim 12, it is characterised in that
    The authentication unit, is additionally operable to be prompted including at least following rank output error according to the predefined message content parameter Information:The only prompt message of output parameter value error;The prompt message of the incongruent relevant parameter rule of output parameter value.
  14. 14. device as claimed in claim 8, it is characterised in that further include:
    Unit is stated, for stating following methods in the parameter rule object interface:The device for obtaining form data; The device of output error message when verifying the form data failure;The device of mandatory parameter is set;Set and obtain list mark The device of topic.
CN201610958900.6A 2016-10-27 2016-10-27 Form data verification method and form data verification device Active CN107995153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610958900.6A CN107995153B (en) 2016-10-27 2016-10-27 Form data verification method and form data verification device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610958900.6A CN107995153B (en) 2016-10-27 2016-10-27 Form data verification method and form data verification device

Publications (2)

Publication Number Publication Date
CN107995153A true CN107995153A (en) 2018-05-04
CN107995153B CN107995153B (en) 2021-01-05

Family

ID=62028667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610958900.6A Active CN107995153B (en) 2016-10-27 2016-10-27 Form data verification method and form data verification device

Country Status (1)

Country Link
CN (1) CN107995153B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491896A (en) * 2018-10-26 2019-03-19 深圳点猫科技有限公司 A kind of the wechat small routine form validation method and electronic equipment of educational system
CN109783751A (en) * 2018-12-14 2019-05-21 平安普惠企业管理有限公司 Form validation method and terminal device
CN109816480A (en) * 2018-12-29 2019-05-28 广州兴森快捷电路科技有限公司 It is a kind of to promote the method and device for extracting quotation parameter accuracy rate
CN110298018A (en) * 2019-05-14 2019-10-01 深圳市雄帝科技股份有限公司 Text data processing method, device, computer equipment and storage medium
CN110580172A (en) * 2019-09-11 2019-12-17 北京明略软件系统有限公司 Configuration rule verification method and device, storage medium and electronic device
CN111355709A (en) * 2020-02-19 2020-06-30 望海康信(北京)科技股份公司 Data verification method and device, electronic equipment and computer readable storage medium
CN111382063A (en) * 2018-12-30 2020-07-07 贝壳技术有限公司 Acts compatible checking method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1938680A (en) * 2004-03-26 2007-03-28 劲升逻辑有限公司 A forms development platform
CN101576823A (en) * 2009-06-11 2009-11-11 阿里巴巴集团控股有限公司 Method for verifying form control and device
CN102413162A (en) * 2011-07-29 2012-04-11 互动在线(北京)科技有限公司 Website front-end verification method and device
CN103077185A (en) * 2012-12-18 2013-05-01 厦门雅迅网络股份有限公司 Object-based user-defined information-expanding method
CN103106186A (en) * 2013-01-22 2013-05-15 百度在线网络技术(北京)有限公司 Form verification method and form verification system
CN103984547A (en) * 2014-05-14 2014-08-13 上海上讯信息技术股份有限公司 Form validation method and system
CN104049972A (en) * 2014-06-18 2014-09-17 北京京东尚科信息技术有限公司 Data verification method and system
CN105426183A (en) * 2015-11-12 2016-03-23 天津车之家科技有限公司 Form verification method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1938680A (en) * 2004-03-26 2007-03-28 劲升逻辑有限公司 A forms development platform
CN101576823A (en) * 2009-06-11 2009-11-11 阿里巴巴集团控股有限公司 Method for verifying form control and device
CN102413162A (en) * 2011-07-29 2012-04-11 互动在线(北京)科技有限公司 Website front-end verification method and device
CN103077185A (en) * 2012-12-18 2013-05-01 厦门雅迅网络股份有限公司 Object-based user-defined information-expanding method
CN103106186A (en) * 2013-01-22 2013-05-15 百度在线网络技术(北京)有限公司 Form verification method and form verification system
CN103984547A (en) * 2014-05-14 2014-08-13 上海上讯信息技术股份有限公司 Form validation method and system
CN104049972A (en) * 2014-06-18 2014-09-17 北京京东尚科信息技术有限公司 Data verification method and system
CN105426183A (en) * 2015-11-12 2016-03-23 天津车之家科技有限公司 Form verification method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
AFDNLW: ""四种表单验证方法的分析和比较"", 《CSDN》 *
让我们忘了那片海: ""Django的Form"", 《让我们忘了那片海博客园》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491896A (en) * 2018-10-26 2019-03-19 深圳点猫科技有限公司 A kind of the wechat small routine form validation method and electronic equipment of educational system
CN109783751A (en) * 2018-12-14 2019-05-21 平安普惠企业管理有限公司 Form validation method and terminal device
CN109816480A (en) * 2018-12-29 2019-05-28 广州兴森快捷电路科技有限公司 It is a kind of to promote the method and device for extracting quotation parameter accuracy rate
CN111382063A (en) * 2018-12-30 2020-07-07 贝壳技术有限公司 Acts compatible checking method and device
CN111382063B (en) * 2018-12-30 2023-09-08 贝壳技术有限公司 Method and device for verifying compact compatibility
CN110298018A (en) * 2019-05-14 2019-10-01 深圳市雄帝科技股份有限公司 Text data processing method, device, computer equipment and storage medium
CN110580172A (en) * 2019-09-11 2019-12-17 北京明略软件系统有限公司 Configuration rule verification method and device, storage medium and electronic device
CN110580172B (en) * 2019-09-11 2022-12-09 北京明略软件系统有限公司 Configuration rule verification method and device, storage medium and electronic device
CN111355709A (en) * 2020-02-19 2020-06-30 望海康信(北京)科技股份公司 Data verification method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN107995153B (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN107995153A (en) Form data verification method and form data verification device
EP2976709B1 (en) Systems and methods for intercepting, processing, and protecting user data through web application pattern detection
US9450954B2 (en) Form filling with digital identities, and automatic password generation
CN105765527B (en) The method and apparatus of software development kit (SDK) for customization
US9485240B2 (en) Multi-account login method and apparatus
CN105814539B (en) The method and apparatus generated for code virtualization and remote process call
CN110651252A (en) Content management system extensions
US20080295164A1 (en) Mashup component isolation via server-side analysis and instrumentation
US20030182651A1 (en) Method of integrating software components into an integrated solution
US10887302B2 (en) Secured rest execution inside headless web application
US10943063B1 (en) Apparatus and method to automate website user interface navigation
CN103838558B (en) Website build a station system and method, access website method and webpage adaptation system
US20190340230A1 (en) System and method for generating websites from predefined templates
US11004054B2 (en) Updating account data for multiple account providers
US11507655B1 (en) Automatic and predictive source code generation
US20210397682A1 (en) Secure Service Interaction
CN107301137A (en) RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
CN108021564A (en) A kind of method and apparatus of page reorientation
CN115543479A (en) Interface calling analysis method and device suitable for dynamic parameters
Kellezi et al. Towards secure open banking architecture: an evaluation with OWASP
US9785489B1 (en) Secure script execution using sandboxed environments
CN108737338A (en) A kind of authentication method and system
Cade et al. Sun certified enterprise architect for java ee study guide
US9323819B1 (en) Facilitating valid data entry
Freeman Making HTTP Requests

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant