Giter Site home page Giter Site logo

Regex validation mistake about f3-validate HOT 2 OPEN

JiSoft avatar JiSoft commented on June 11, 2024
Regex validation mistake

from f3-validate.

Comments (2)

geofmureithi-zz avatar geofmureithi-zz commented on June 11, 2024

Let me check on it

On Friday, April 15, 2016, Igor Cherkashin [email protected] wrote:

public function validates, line 400.
it parses an expression by format: regex,/here exactly regex body/
but what's happen if the regex body has one or more comma as well ?

I offer changes:
if (($rv=strstr($rule, ',')) !== false) {
$rule = explode(',', $rule);
$method = 'validate_'.$rule[0];
$param = ltrim($rv,',');//$rule[1];
$rule = $rule[0];
} else {
$method = 'validate_'.$rule;
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub<
https://ci5.googleusercontent.com/proxy/3uMDi3R7bg6IRq3SaVmBScL4ZLbbB4fbjkyTnEEg4wMmAHuLj5FCqoHkXPf0IW3YGMNNZ3BhvQXfAoSm7iBJzfa8FJ034IHBp1kf4cHdVXtgXT7u01no_A4Ur1IjiNLDcyPTtAY2O9U1F37CZn0_NcLmWXzqrQ=s0-d-e1-ft#https://github.com/notifications/beacon/AGnizq7r_fLSoFamflNksDJdKEYbIyjzks5p38dygaJpZM4IIg8l.gif

from f3-validate.

geofmureithi-zz avatar geofmureithi-zz commented on June 11, 2024

This issue is still possibly persistent

from f3-validate.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.