summaryrefslogtreecommitdiff
path: root/source4/lib/appweb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-02 00:59:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:39 -0500
commit9aa3c44f70e1102be64c503da43718b2c187dde3 (patch)
treea8d29430db247aca9978ba7d42069fa1d6383780 /source4/lib/appweb
parenta489c19c4542e10fcdf1f7ee4e8a191b6818fc65 (diff)
downloadsamba-9aa3c44f70e1102be64c503da43718b2c187dde3.tar.gz
samba-9aa3c44f70e1102be64c503da43718b2c187dde3.tar.bz2
samba-9aa3c44f70e1102be64c503da43718b2c187dde3.zip
r11456: fixed a ejs parser bug for delete() statements
(This used to be commit b8694c58f528d9da66cd623076282caece39d8a7)
Diffstat (limited to 'source4/lib/appweb')
-rw-r--r--source4/lib/appweb/ejs/ejsParser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/appweb/ejs/ejsParser.c b/source4/lib/appweb/ejs/ejsParser.c
index da7b544c90..da922a5728 100644
--- a/source4/lib/appweb/ejs/ejsParser.c
+++ b/source4/lib/appweb/ejs/ejsParser.c
@@ -312,7 +312,9 @@ static int parseStmt(Ejs *ep, int state, int flags)
flags | EJS_FLAGS_DELETE) != EJS_STATE_EXPR_DONE) {
goto error;
}
- mprDeleteProperty(ep->currentObj, ep->currentProperty->name);
+ if (flags & EJS_FLAGS_EXE) {
+ mprDeleteProperty(ep->currentObj, ep->currentProperty->name);
+ }
done++;
break;