Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Error in regex_match[/^;\"'{}\[\]^<>=/]", validation rules #4929

Closed
dreamy2h opened this issue Jul 9, 2021 · 1 comment · Fixed by #4957
Closed

Bug: Error in regex_match[/^;\"'{}\[\]^<>=/]", validation rules #4929

dreamy2h opened this issue Jul 9, 2021 · 1 comment · Fixed by #4957
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@dreamy2h
Copy link

dreamy2h commented Jul 9, 2021

Direction
https://forum.codeigniter.com/thread-79615.html

Describe the bug
when entering this regex, I get an error: required|maxlength is not a valid rule. The full description of the error is in the forum link, along with the code.

CodeIgniter 4 version
4.1.3

Affected module(s)

{
    "title": "CodeIgniter\\Validation\\Exceptions\\ValidationException",
    "type": "CodeIgniter\\Validation\\Exceptions\\ValidationException",
    "code": 500,
    "message": "required|max_length is not a valid rule.",
    "file": "/srv/http/trazador/system/Validation/Validation.php",
    "line": 321,
    "trace": [
        {
            "file": "/srv/http/trazador/system/Validation/Validation.php",
            "line": 321,
            "function": "forRuleNotFound",
            "class": "CodeIgniter\\Validation\\Exceptions\\ValidationException",
            "type": "::"
        },
        {
            "file": "/srv/http/trazador/system/Validation/Validation.php",
            "line": 159,
            "function": "processRules",
            "class": "CodeIgniter\\Validation\\Validation",
            "type": "->"
        },
        {
            "file": "/srv/http/trazador/system/Controller.php",
            "line": 183,
            "function": "run",
            "class": "CodeIgniter\\Validation\\Validation",
            "type": "->"
        },
        {
            "file": "/srv/http/trazador/app/Controllers/Viaticos/Ctrl_viaticos.php",
            "line": 234,
            "function": "validate",
            "class": "CodeIgniter\\Controller",
            "type": "->"
        },
        {
            "file": "/srv/http/trazador/system/CodeIgniter.php",
            "line": 928,
            "function": "guardar_viatico",
            "class": "App\\Controllers\\Viaticos\\Ctrl_viaticos",
            "type": "->"
        },
        {
            "file": "/srv/http/trazador/system/CodeIgniter.php",
            "line": 436,
            "function": "runController",
            "class": "CodeIgniter\\CodeIgniter",
            "type": "->"
        },
        {
            "file": "/srv/http/trazador/system/CodeIgniter.php",
            "line": 336,
            "function": "handleRequest",
            "class": "CodeIgniter\\CodeIgniter",
            "type": "->"
        },
        {
            "file": "/srv/http/trazador/public/index.php",
            "line": 37,
            "function": "run",
            "class": "CodeIgniter\\CodeIgniter",
            "type": "->"
        }
    ]
}

Context

  • OS: [Manjaro 21.0.7]
  • Web server [Apache 2.4.48 (Unix)]
  • PHP version [PHP 8.0.7]
@dreamy2h dreamy2h added the bug Verified issues on the current code behavior or pull requests that will fix them label Jul 9, 2021
@paulbalandan paulbalandan linked a pull request Jul 22, 2021 that will close this issue
3 tasks
@paulbalandan
Copy link
Member

Fixed in #4957

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants