Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit 6e0e223

Browse files
committed
Merge branch 'bugfix-10916' of https://github.com/runrevian/livecode into bugfix-10916
2 parents 1900e53 + ed97cca commit 6e0e223

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

engine/src/objectprops.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ Exec_stat MCObject::setscriptprop(MCExecPoint& ep)
850850
else
851851
{
852852
char *oldscript = script;
853+
bool t_old_script_encrypted = m_script_encrypted;
853854
if (data.getstring()[length - 1] != '\n')
854855
{
855856
script = new char[length + 2];
@@ -860,6 +861,8 @@ Exec_stat MCObject::setscriptprop(MCExecPoint& ep)
860861
else
861862
script = data.clone();
862863

864+
// IM-2013-05-29: [[ BZ 10916 ]] flag new script as unencrypted
865+
m_script_encrypted = false;
863866
getstack() -> securescript(this);
864867

865868
flags |= F_SCRIPT;
@@ -873,6 +876,7 @@ Exec_stat MCObject::setscriptprop(MCExecPoint& ep)
873876
hlist = NULL;
874877
delete script;
875878
script = oldscript;
879+
m_script_encrypted = t_old_script_encrypted;
876880
oldscript = NULL;
877881
if (script == NULL)
878882
flags &= ~F_SCRIPT;

0 commit comments

Comments
 (0)