Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Rewrite config #272

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Rewrite config #272

wants to merge 5 commits into from

Conversation

Art4
Copy link
Collaborator

@Art4 Art4 commented Oct 11, 2017

WIP

This PR rewrites the configuration file and the Config class. The point of this PR is an easier format for non-technical user because the line

$config['enable_youtube_decipher_signature'] = false;

is easier to set than the current version:

return [
    'enable_youtube_decipher_signature' => true,
];

The new Config class has also a built-in transformation so we can modify the configuration but can keep care of the existing user configurations. We can also track the deprecated configuration in the custom.php and notify the user about the changes.

@@ -17,7 +17,7 @@
*/
$config['debug'] = false;

/**
/*
* Enable the YouTube signature decipher function
* WARNING: This downloads javascript code from a 3rd party server and interprets it!
* This MAY harm your server, if the 3rd party server delivers malicious code!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be impossible to execute malicious code with the current decipher script. The current decipher didn't execute the raw code instead using matched command dictionary to reverse, splice, or swapping signature arrays..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants