mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 11:19:18 +01:00
Limit characters in Python module names to [a-zA-Z0-9]
This commit is contained in:
parent
cd052f4619
commit
97510cef0c
@ -78,6 +78,9 @@ void ScriptInfo::InitFromFile(const ScriptManager* manager,
|
||||
d->url_ = s.value("url").toString();
|
||||
d->script_file_ = QFileInfo(QDir(path), s.value("script_file").toString()).absoluteFilePath();
|
||||
d->icon_filename_ = QFileInfo(QDir(path), s.value("icon").toString()).absoluteFilePath();
|
||||
|
||||
// Replace special characters in the ID
|
||||
d->id_.replace(QRegExp("[^a-zA-Z0-9_]"), "_");
|
||||
}
|
||||
|
||||
bool ScriptInfo::operator ==(const ScriptInfo& other) const {
|
||||
|
Loading…
Reference in New Issue
Block a user