Changeset 5305
- Timestamp:
- 04/10/2017 12:54:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/zip/class-serve.php
r5179 r5305 40 40 $version = 'trunk'; 41 41 42 if ( ! preg_match( "!^(?P<slug>[a-z0-9- ]+)(.(?P<version>.+))?.zip$!i", $zip, $m ) ) {42 if ( ! preg_match( "!^(?P<slug>[a-z0-9-_]+)(.(?P<version>.+))?.zip$!i", $zip, $m ) ) { 43 43 throw new Exception( __METHOD__ . ": Invalid URL." ); 44 44 }
Note: See TracChangeset
for help on using the changeset viewer.