Changeset 2064

Show
Ignore:
Timestamp:
02/16/2008 03:40:44 AM (9 months ago)
Author:
Geert
Message:

Some small changes:

  • Validation length now utf8
  • No more use of :any and :num in routes
  • A few comment updates
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branches/website/application/config/routes.php

    r1942 r2064  
    44        '_default' => 'home', 
    55        'gophp5'   => 'news/gophp5', 
    6         'auth:any' => 'home' 
     6        'auth.+'  => 'home' 
    77); 
  • trunk/system/controllers/template.php

    r1911 r2064  
    2020        protected $template = 'template'; 
    2121 
    22         // Default to no auto-rendering 
     22        // Default to do auto-rendering 
    2323        protected $auto_render = TRUE; 
    2424 
  • trunk/system/libraries/Validation.php

    r2063 r2064  
    492492                        return FALSE; 
    493493 
    494                 $size = strlen($str); 
     494                $size = utf8::strlen($str); 
    495495                $status = FALSE; 
    496496 
  • trunk/system/libraries/drivers/Database.php

    r2062 r2064  
    287287                        break; 
    288288                        case 'double': 
     289                                // Convert to non-locale aware float to prevent possible commas 
    289290                                $value = sprintf('%F', $value); 
    290291                        break;