[Git][codeigniterpower/codeigniterpower][codeigniter2] fix valid filter_var() options.. php documentation is crap fucking fashioned devs

0 views
Skip to first unread message

Герхард PICCORO Lenz McKAY (@mckaygerhard)

unread,
Feb 27, 2024, 4:14:32 PMFeb 27
to venenux...@googlegroups.com

Герхард PICCORO Lenz McKAY pushed to branch codeigniter2 at codeigniterpower / codeigniterpower

Commits:

  • 0135ff04
    by mckaygerhard at 2024-02-27T17:14:08-04:00
    fix valid filter_var() options.. php documentation is crap fucking fashioned devs
    
    * the php documentation does not specifies if the options can be any mixed
      so later we found is only int or array valid allowed
    

1 changed file:

Changes:

  • appsys/core/Input.php
    ... ... @@ -555,7 +555,7 @@ class CI_Input {
    555 555
     					$flag = FILTER_FLAG_IPV6;
    
    556 556
     					break;
    
    557 557
     				default:
    
    558
    -					$flag = '';
    
    558
    +					$flag = 0;
    
    559 559
     					break;
    
    560 560
     			}
    
    561 561
     
    


View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help

Reply all
Reply to author
Forward
0 new messages