Changeset 26831


Ignore:
Timestamp:
Jan 17, 2014, 8:09:43 PM (6 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.