Skip to content

Commit e29d503

Browse files
committed
Bug fixes for V2.7.7
1 parent e58d84c commit e29d503

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

resources/doc/core.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

resources/ecs/codex.ecs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -333,22 +333,15 @@ L2:
333333
send `restore` to parent
334334
history set url `.`
335335
exit
336-
! set style `display` of Body to `none`
337-
! alert `Exit`
338336
end
339337

340338
on message
341339
begin
342340
put the message into Message
343-
! alert Message
344-
! if Message is `start`
345-
! begin
346-
! set style `display` of Body to `block`
347-
! end
348341
if Message is `next` go to StepForward
349342
if Message is `tutorial`
350343
begin
351-
set style `display` of ReferencePanel to `none`
344+
set style `display` of ReferencePanel to `none`
352345
set style `display` of HelpPanel to `block`
353346
set style `display` of HelpButtons to `block`
354347
put empty into storage as `.ref`
@@ -790,6 +783,7 @@ SHP3:
790783
`border:1px solid black;border-radius:0.5em;padding:0.3em;background:lightgray;text-decoration:none`
791784
on click Copy
792785
begin
786+
debug step
793787
gosub to StopTestModule
794788
put `code` into View
795789
if Mobile gosub to SetView
@@ -952,12 +946,13 @@ DoRunStop:
952946
set style `display` of HelpOuter to `none`
953947
set style `display` of RunPanel to `block`
954948
end
955-
949+
956950
set attribute `src` of RunStop to `resources/icon/runstop.png`
957951
set attribute `title` of RunStop to `Stop`
958952
set Running
959953
wait 10 ticks
960-
954+
955+
dummy
961956
run Script with RunPanel as TestModule nowait then
962957
begin
963958
clear Running

resources/ecs/docman.ecs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
variable N
7373
variable P
7474

75+
rest path `rest.php`
76+
7577
create Tracer in Parent
7678
set attribute `id` of Tracer to `easycoder-tracer`
7779
create Container in Parent
@@ -655,9 +657,11 @@ SaveKeyword:
655657

656658
SavePackage:
657659
gosub to SaveKeyword
658-
! put encode Package into Package
660+
put encode Package into Package
659661
set the text of Status to `Saving package "` cat PackageName cat `"...`
660-
rest post Package to `_save/doc~` cat PackageName cat `.json`
662+
set encoding to `base64`
663+
rest post encode Package to `_save/doc~` cat PackageName cat `.json`
664+
set encoding to `ec`
661665
set the text of Status to `Package "` cat PackageName cat `" saved`
662666
wait 3
663667
set the text of Status to ``

resources/ecs/scripted.ecs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
variable Item
3838

3939
rest path `rest.php`
40+
set encoding to `base64`
4041

4142
set the title to `Script Editor`
4243

@@ -57,7 +58,6 @@
5758
set the text of Delete to `Delete`
5859
create Status in Buttons
5960
set the style of Status to `position:absolute;float:right;padding-left:2em;color:green`
60-
debug step
6161

6262
create ScriptName in Container
6363
set the style of ScriptName to `display:flex;margin:0.5em 0`
@@ -119,7 +119,7 @@
119119
put the content of ContentEditor into Content
120120
if Content is not Current
121121
begin
122-
rest post Content to `_save/ecs~` cat Name
122+
rest post encode Content to `_save/ecs~` cat Name
123123
put Content into Current
124124
set the content of Status to `Script '` cat Name cat `' saved`
125125
fork to ResetStatus
@@ -258,4 +258,4 @@ CloseBrowser:
258258
ResetStatus:
259259
wait 2
260260
set the content of Status to ``
261-
stop
261+
stop

rest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
$dir = substr($path, 0, $p);
175175
mkdir($dir, 0777, true);
176176
header("Content-Type: application/text");
177-
$content = stripslashes(file_get_contents("php://input"));
177+
$content = base64_decode(stripslashes(file_get_contents("php://input")));
178178
$p = strrpos($path, '.');
179179
$root = substr($path, 0, $p);
180180
$ext = substr($path, $p);
@@ -536,4 +536,5 @@ function logger($message)
536536
fwrite($fp, "$date: $message\n");
537537
fclose($fp);
538538
}
539+
539540
?>

0 commit comments

Comments
 (0)