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

Commit 3d13347

Browse files
author
Monte Goulding
authored
Merge pull request #1719 from livecode/bugfix-20330
[Bug 20330] Do not allow stack names to contain quotes
2 parents 5580cf1 + 92f6976 commit 3d13347

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5250,6 +5250,12 @@ on revIDEPropertySet pObjectList, pProperty, pValue, pLockUpdates
52505250
set the name of tStack to tOldName
52515251
exit revIDEPropertySet
52525252
end if
5253+
if pValue contains quote then
5254+
beep
5255+
answer error revIDELocalise("The name of the stack cannot contain quotes")
5256+
set the name of tStack to tOldName
5257+
exit revIDEPropertySet
5258+
end if
52535259
put pValue into tStackName
52545260
else
52555261
put the short name of tStack into tStackName

notes/bugfix-20330.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Show error dialog when the name of the stack contains quotes

0 commit comments

Comments
 (0)