Giter Club home page Giter Club logo

moodle-local_vflibs's Introduction

moodle-local_vflibs

This is a compilation of additional libraries i'm using often in my plugins.

The JQPlot library is the MIT Plotting Library that offers a nice set of HTML5 graphing capoabilities using easy to build JS objects.

Antiword is an old Word to Text converter for the search engine document indexing capability.

XPdf is a PDF to text converter used in search engine

TCPdf is a newer version of TCPDF. // Version : 6.0.054 // Begin : 2002-08-03 // Last Update : 2014-01-13 Moodle still uses an old version untill 2.8 This TC PDF adds the insternal storing of the page format and page orientation so it can be queried back from the document.

moodle-local_vflibs's People

Contributors

edunao avatar vfremaux avatar

Watchers

 avatar

moodle-local_vflibs's Issues

Upgrade of $plugin->supported declaration to Moodle 3.11.3

Trying to install in the latest Moodle 3.11.3 complains that

Incorrect syntax in plugin supported declaration in vflibs

Looking at Moodle source code, the $plugin->supported in version.php must really be 2 integers. Moodle checks it (in lib/classes/plugininfo/base.php) like this:

if (isset($plugin->supported)) {
    // Checks for structure of supported.
    $isint = (is_int($plugin->supported[0]) && is_int($plugin->supported[1]));
    $isrange = ($plugin->supported[0] <= $plugin->supported[1] && count($plugin->supported) == 2);

    if (is_array($plugin->supported) && $isint && $isrange) {
	$this->pluginsupported = $plugin->supported;
    } else {
	throw new coding_exception('Incorrect syntax in plugin supported declaration in '."$this->name");
    }
}

Fix seems to be just to update version.php from

$plugin->supported = [38];

->

$plugin->supported = [38, 38];

Included libraries need to be upgraded.

Hello, we wanted to use this plugin, but found some included libraries in old versions. Some of them have newer versions with security updates. The libraries are listed below:

  • jquery:
    jQWidgets
    used version: 4.1.2 (April-28-2016)
    latest version: 6.0.6 ( August 13, 2018) https://www.jqwidgets.com/tag/jqwidgets/
  • tcpdf:
    used version: 3, 29 June 2007
    latest version: 6.2.25 https://github.com/tecnickcom/TCPDF/blob/master/CHANGELOG.TXT
    6.2.22
    - Fix for security vulnerability: Using the phar:// wrapper it was possible to trigger the unserialization of user provided data.
    6.2.19
    - Merge various fixes for PHP 7.3 compatibility and security.
    6.2.0 (2014-12-10)
    - Bug #1005 "Security Report, LFI posting internal files externally abusing default parameter" was fixed.
    6.0.093 (2014-09-02)
    - Security fix: some serialize/unserialize methods were replaced with json_encode/json_decode to avoid a potential object injection with user supplied content. Thanks to ownCloud Inc. for reporting this issue.
    ...
  • timeline_api_2.3.0:
    used version: 2.3.0
    latest version: 2.3.1 and pre 2.4.0 https://github.com/simile-widgets/timeline
  • xpdf:
    used version: 3.02 (2007-feb-27)
    latest version: 4.00 (2017-aug-10) http://www.xpdfreader.com/download.html
    Fixed a security hole in SecurityHandler.cc (uninitialized variables).
    This vulnerability was discovered by Kushal Shah of Fortinet's
    FortiGuard Labs.
    Fixed a security hole in Function.cc (write past end of array).
    Fixed a security hole with the use of d0/d1 operators outside of a
    Type3 CharProc [CVE-2016-9027].

We want also to report one files structure issue below:
local/vflibs/timelinelib.php lines 153, 157,161 - uses mkdir($CFG->dataroot.'/'.$COURSE->id.'/...', 0777). It should make temporary folders in $CFG->dataroot.'/temp' since Moodle 2.0: https://docs.moodle.org/21/en/Creating_Moodle_site_data_directory/Data_directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.