Changeset 469:8936fd715c6a for inc/admin/prepend.php
- Timestamp:
- 07/01/11 17:31:34 (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/prepend.php
r468 r469 24 24 function dc_valid_fav($url) { 25 25 global $core; 26 27 $parts = parse_url($url); 28 if (isset($parts['path'])) { 29 if ($parts['path'] == 'plugin.php') { 30 if (isset($parts['query'])) { 31 $parts = explode('&', $parts['query']); 32 $param = explode('=', $parts[0]); 33 if (($param[0] == 'p') && (isset($param[1]))) { 34 if (!$core->plugins->moduleExists($param[1])) { 35 return false; 36 } 37 } 26 27 if (preg_match('#plugin\.php\?p=([^&]+)#',$url,$matches)) { 28 if (isset($matches[1])) { 29 if (!$core->plugins->moduleExists($matches[1])) { 30 return false; 38 31 } 39 32 }
Note: See TracChangeset
for help on using the changeset viewer.