Changeset 26831


Ignore:
Timestamp:
01/17/14 20:09:43 (5 years ago)
Author:
mistic100
Message:

use ctype_xdigit() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/EasyCaptcha/admin.php

    r26025 r26831  
    103103    $hex = $hex[0].$hex[0].$hex[1].$hex[1].$hex[2].$hex[2]; 
    104104  } 
    105   else if (strlen($hex) != 6) 
     105  else if (strlen($hex) != 6 || !ctype_xdigit($hex)) 
    106106  { 
    107107    $page['errors'][] = l10n('Invalid color code <i>%s</i>', '#'.$hex); 
Note: See TracChangeset for help on using the changeset viewer.