Giter Club home page Giter Club logo

Comments (3)

trampgeek avatar trampgeek commented on August 13, 2024

I haven't seen this message but it looks like it might be like the problem described here: https://moodle.org/mod/forum/discuss.php?d=436087

Try temporarily deleting all entries in Site administration > General > HTTP Security > Curl Blocked Hosts List ?

from jobeinabox.

vanniand avatar vanniand commented on August 13, 2024

Thnx for the answer.
I tried to remove all hosts in curl hostlist but it did non work. Maybe
the funcion
protected function check_securityhelper_blocklist(string $url): ?string {
in /moodle/lib/filelib.php
blocks url due to a other plugin settings and not only for global settings

I modified the function in question/type/coderunner/classes/jobesandbox.php
as follows. So it works
private function http_request($resource, $method, $body=null) {
list($url, $headers) = $this->get_jobe_connection_info($resource);

$settings['ignoresecurity']=true;
    $curl = new curl($settings);

from jobeinabox.

trampgeek avatar trampgeek commented on August 13, 2024

Thanks for the information. Good to know you've found a solution. It's not one I'd want to lock into the code as it might open other security holes, but the information might be of interest to others trying to run a system with a configuration like yours. Thanks for posting.

from jobeinabox.

Related Issues (11)

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.