mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-18 17:32:44 -04:00
Fix valid extension entry points.
Add possibility to use underscores (_) in entrypoints.
This commit is contained in:
1 parent
806b4de54f
commit
ade1524d43
1 file changed
+2
-1
@@ -82,9 +82,10 @@ class Minz_ExtensionManager {
|
||||
* @return true if the array is valid, false else.
|
||||
*/
|
||||
public static function is_valid_metadata($meta) {
|
||||
$valid_chars = array('_');
|
||||
return !(empty($meta['name']) ||
|
||||
empty($meta['entrypoint']) ||
|
||||
!ctype_alnum($meta['entrypoint']));
|
||||
!ctype_alnum(str_replace($valid_chars, '', $meta['entrypoint'])));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user