Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a94b59f

Browse filesBrowse files
Merge pull request livecode#4467 from montegoulding/bugfix-18272
[[ Bug 18272 ]] Ensure script only stack scripts are unencrypted
2 parents 2cbfdf6 + 2470e5d commit a94b59f
Copy full SHA for a94b59f

File tree

Expand file treeCollapse file tree

2 files changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-1
lines changed

‎docs/notes/bugfix-18272.md

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure scripts are unencrypted when setting the stack to script only

‎engine/src/dispatch.cpp

Copy file name to clipboardExpand all lines: engine/src/dispatch.cpp
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,10 @@ IO_stat MCDispatch::dosavescriptonlystack(MCStack *sptr, const MCStringRef p_fna
10041004
{
10051005
MCAutoStringRef t_script_body;
10061006

1007-
// Write out the standard script stack header, and then the script itself
1007+
// Ensure script isn't encrypted if a password was removed in session
1008+
sptr -> unsecurescript(sptr);
1009+
1010+
// Write out the standard script stack header, and then the script itself
10081011
MCStringFormat(&t_script_body, "script \"%@\"\n%@", sptr -> getname(), sptr->_getscript());
10091012

10101013
// Convert line endings - but only if the native line ending isn't CR!

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.