- "Stick with ASCII letters, digits, underscore, and minus sign.");
+ 'Stick with ASCII letters, digits, underscore, and minus sign.');
+ throw new ClientException($msg);
+ }
+ if (preg_match('/\.(php|cgi|asp|aspx|js|vb)\w/i', $name)) {
+ common_log(LOG_ERR, "Unsafe theme filename: $name");
+ // TRANS: Server exception thrown when an uploaded theme contains files with unsafe file extensions.
+ $msg = _('Theme contains unsafe file extension names; may be unsafe.');