Changeset 17024 for trunk/client/ca/src/EBox/CGI/IssueCertificate.pm
- Timestamp:
- 03/10/10 14:45:40 (6 months ago)
- Files:
-
- 1 modified
-
trunk/client/ca/src/EBox/CGI/IssueCertificate.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/ca/src/EBox/CGI/IssueCertificate.pm
r16999 r17024 140 140 } 141 141 142 # XXX: We have set a workaround until UTF-8 are allowed in OpenSSL 142 143 # Only valid chars minus '/' plus '*' --> security risk 143 unless ( $name =~ m{^[ \w.?&+:\-\@\*]*$} ) {144 throw EBox::Exceptions::External(__ ('The input contains invalid ' .145 'characters. All alphanumeric characters, ' .144 unless ( $name =~ m{^[A-Za-z0-9 .?&+:\-\@\*]*$} ) { 145 throw EBox::Exceptions::External(__x('The input contains invalid ' . 146 'characters. All {ascii} alphanumeric characters, ' . 146 147 'plus these non alphanumeric chars: .?&+:-@* ' . 147 'and spaces are allowed.')); 148 'and spaces are allowed.', 149 ascii => 'ASCII')); 148 150 } 149 151