mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:49:34 +02:00
Fix "simple inline/"direct code injection" entity scripts fail to load" (https://app.asana.com/0/32622044445063/33562012389754)
This commit is contained in:
parent
c0a71da9e3
commit
6337158cfc
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ QString EntityTreeRenderer::loadScriptContents(const QString& scriptMaybeURLorTe
|
||||||
QUrl url(scriptMaybeURLorText);
|
QUrl url(scriptMaybeURLorText);
|
||||||
|
|
||||||
// If the url is not valid, this must be script text...
|
// If the url is not valid, this must be script text...
|
||||||
if (!url.isValid()) {
|
if (!url.isValid() || scriptMaybeURLorText.startsWith("(")) {
|
||||||
isURL = false;
|
isURL = false;
|
||||||
return scriptMaybeURLorText;
|
return scriptMaybeURLorText;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue