Skip to content

Commit

Permalink
Add random value to tmpdir name
Browse files Browse the repository at this point in the history
  • Loading branch information
frncesc authored and toniginard committed Jun 9, 2022
1 parent c5e49ed commit 831a19c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ Release notes for GeoGebra Module for Moodle (http://moodle.org/plugins/pluginve
More information on each of the fixes can be found in the project
development home at https://github.com/projectestac/moodle-mod_geogebra

Changes in 3.6.7 (2022/06/09)
---------------------------------------------------------------------------------------
- Add a random value when building the name of a temp directory, to avoid possible concurrency issues
- Added indexes to improve performance when there are a lot of attempts
- Updated validation of external URL
- Set https in tube.geogebra.org. Fixed deprecated function
- MBS-5843: Fix unittest
- Removed empty string as a default value for CHAR NOT NULL column (urlggb)

Changes in 3.6.6 (2022/01/16)
---------------------------------------------------------------------------------------
- Set params `seed` and `urlggb` as advanced.
Expand Down
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function geogebra_get_js_from_geogebra($context, $geogebra) {
if (geogebra_is_valid_external_url($geogebra->url)) {
require_once("$CFG->libdir/filestorage/zip_packer.php");
// Prepare tmp dir (create if not exists, download ggb file...)
$dirname = 'mod_geogebra_'.time();
$dirname = 'mod_geogebra_'.time().rand(0, 9999);
$tmpdir = make_temp_directory($dirname);
if (!$tmpdir) {
debugging("Cannot create temp directory $dirname");
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2022060700; // The current module version (Date: YYYYMMDDXX)
$plugin->version = 2022060900; // The current module version (Date: YYYYMMDDXX)
$plugin->requires = 2015111600; // Requires this Moodle version (2.7)
$plugin->cron = 0; // Period for cron to check this module (secs)
$plugin->component = 'mod_geogebra'; // To check on upgrade, that module sits in correct place
$plugin->release = 'v3.6.7'; // Human-readable version name
$plugin->release = 'v3.6.8'; // Human-readable version name
$plugin->maturity = MATURITY_STABLE; // How stable the plugin is

0 comments on commit 831a19c

Please sign in to comment.