Changeset 2070

Show
Ignore:
Timestamp:
02/16/2008 11:56:26 PM (8 months ago)
Author:
armen
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Validation.php

    r2069 r2070  
    129129                { 
    130130                        // Handle "any field" filters 
    131                         $fields = $this->any_field; 
     131                        $fields = array($this->any_field); 
    132132                } 
    133133                else 
     
    165165                { 
    166166                        // Handle "any field" filters 
    167                         $fields = $this->any_field; 
     167                        $fields = array($this->any_field); 
    168168                } 
    169169                else 
     
    213213                                        $rule = $matches[1]; 
    214214                                        $args = preg_split('/(?<!\\\\),\s*/', $matches[2]); 
     215 
     216                                        // Replace escaped comma with comma 
     217                                        $args = str_replace('\,', ',', $args); 
    215218                                } 
    216219