Skip to content

Various updates #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Various updates
  • Loading branch information
graham-trott committed Feb 28, 2021
commit 2da264f9f7d190afd21e7d8c9f6d2ea6638a7e90
7 changes: 4 additions & 3 deletions dist/easycoder-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/easycoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -8511,7 +8511,7 @@ const EasyCoder = {
}
},
};
EasyCoder.version = `2.7.5`;
EasyCoder.version = `2.7.6`;
EasyCoder.timestamp = Date.now();
console.log(`EasyCoder loaded; waiting for page`);

Expand Down
4 changes: 2 additions & 2 deletions dist/easycoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: EasyCoder
* Plugin URI: https://easycoder.software
* Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
* Version: 2.7.5
* Version: 2.7.6
* Author: EasyCoder Software
* Author URI: https://easycoder.software
*/
Expand All @@ -16,7 +16,7 @@
add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
function easycoder_enqueue_script() {
wp_enqueue_script('easycoder_script',
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.7.5');
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.7.6');
}

// Set up default plugin and REST scripts
Expand Down
3 changes: 3 additions & 0 deletions dist/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ For tutorials and a programmers' reference see our [EasyCoder Software Codex](ht

== Changelog ==

= 2.7.6 23-feb 2021 =
* Fix security vulnerability. Thanks to Brett Caldwell, buckshotbrett@gmail.com

= 2.7.5 02-dec 2020 =
* Fix a bug in the code to detect module running

Expand Down
1 change: 1 addition & 0 deletions dist/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
// Endpoint: {site root}/wp-content/plugins/easycoder/rest.php/_thumb
header("Content-Type: application/json");
$value = stripslashes(file_get_contents("php://input"));
$value = str_replace( array("&", "|", ";"), '', $value);
$json = json_decode($value);
$source = "../../../$resources/" . str_replace('~', '/', $json->source);
$dest = "../../../$resources/" . str_replace('~', '/', $json->dest);
Expand Down
2 changes: 1 addition & 1 deletion js/easycoder/EasyCoder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
EasyCoder.version = `2.7.5`;
EasyCoder.version = `2.7.6`;
EasyCoder.timestamp = Date.now();
console.log(`EasyCoder loaded; waiting for page`);

Expand Down
2 changes: 1 addition & 1 deletion resources/md/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Also look at some of our examples (/SIDEBAR/). These are complete web pages you

After that it's time to add an ~ec~ script to your web page. The links /SIDEBAR/ include examples that should help you understand what you need to add to your website. If you need further help you can contact us in our [Slack](https://easycoder-software.slack.com/) channel. Don't be afraid to ask; everybody was a beginner once.

All of the source code of this website can be found in the [EasyCoder Repository](https:github.com/easycoder/easycoder.github.io).
All of the source code of this website can be found in the [EasyCoder Repository](https://github.com/easycoder/easycoder.github.io).
4 changes: 2 additions & 2 deletions server/easycoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: EasyCoder
* Plugin URI: https://easycoder.software
* Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
* Version: 2.7.5
* Version: 2.7.6
* Author: EasyCoder Software
* Author URI: https://easycoder.software
*/
Expand All @@ -16,7 +16,7 @@
add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
function easycoder_enqueue_script() {
wp_enqueue_script('easycoder_script',
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.7.5');
'https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/easycoder.js', array(), '2.7.6');
}

// Set up default plugin and REST scripts
Expand Down
3 changes: 3 additions & 0 deletions server/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ For tutorials and a programmers' reference see our [EasyCoder Software Codex](ht

== Changelog ==

= 2.7.6 23-feb 2021 =
* Fix security vulnerability. Thanks to Brett Caldwell, buckshotbrett@gmail.com

= 2.7.5 02-dec 2020 =
* Fix a bug in the code to detect module running

Expand Down
1 change: 1 addition & 0 deletions server/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
// Endpoint: {site root}/wp-content/plugins/easycoder/rest.php/_thumb
header("Content-Type: application/json");
$value = stripslashes(file_get_contents("php://input"));
$value = str_replace( array("&", "|", ";"), '', $value);
$json = json_decode($value);
$source = "../../../$resources/" . str_replace('~', '/', $json->source);
$dest = "../../../$resources/" . str_replace('~', '/', $json->dest);
Expand Down