GithubHelp home page GithubHelp logo

URL Schema about protocol-registry HOT 7 CLOSED

bolte-io avatar bolte-io commented on July 29, 2024
URL Schema

from protocol-registry.

Comments (7)

Shubham-Kumar-2000 avatar Shubham-Kumar-2000 commented on July 29, 2024 1

As from the module we don't provide any validation of url. You need to implement that on your own.

from protocol-registry.

Shubham-Kumar-2000 avatar Shubham-Kumar-2000 commented on July 29, 2024

Can you share your registration code?

from protocol-registry.

bolte-io avatar bolte-io commented on July 29, 2024
const path = require('path');
const ProtocolRegistry = require('protocol-registry');

ProtocolRegistry.register({
    protocol: 'testproto',
    command: `node ${path.join(__dirname, './index.js')} "$_URL_"`, 
    override: true, 
    terminal: true, 
    script: true
}).then(async () => {
    console.log('Success');
});

from protocol-registry.

Shubham-Kumar-2000 avatar Shubham-Kumar-2000 commented on July 29, 2024

There was bug in script: true which is fixed in the current version of the codebase on github.

It has been tested in windows, but testing of macos and linux are pending post which it will be live in npm.

from protocol-registry.

bolte-io avatar bolte-io commented on July 29, 2024

Works now with the changes you made.

image

Additional question.
Is it secure in terms of malformed URLs being able to execute code on the target machine?

from protocol-registry.

Shubham-Kumar-2000 avatar Shubham-Kumar-2000 commented on July 29, 2024

We have added a efficient example to extract data from urls and verify them.
In commit : 2b40053

from protocol-registry.

Shubham-Kumar-2000 avatar Shubham-Kumar-2000 commented on July 29, 2024

New npm version live closing this issue.

from protocol-registry.

Related Issues (20)

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.