Giter VIP home page Giter VIP logo

Comments (6)

plerohellec avatar plerohellec commented on May 30, 2024 1

Yes, I've only seen it in the isp and asn fields but I assume all of the ip_info section is susceptible of including those backslashes. I suppose the backslash could also be found in cpu models since VPS providers can set it any way they want.
Thanks for taking the time to fix this!

from yet-another-bench-script.

masonr avatar masonr commented on May 30, 2024

Appreciate the bug report! Should be easy to filter out the backslashes. Has the network details section been the only area you have been receiving backslashes? I don't think any other field would be susceptible to bad input, but I want to confirm before implementing a change.

from yet-another-bench-script.

plerohellec avatar plerohellec commented on May 30, 2024

I just realized that ip-api.com returns json like this in those cases:

{
    "as": "AS44486 Oliver Horscht is trading as \"SYNLINQ\"",
    "city": "Frankfurt am Main",
    "country": "Germany",
    "countryCode": "DE",
    "isp": "Oliver Horscht is trading as \"SYNLINQ\"",
    "lat": 50.1109,
    "lon": 8.68213,
    "org": "Solutions Virfect",
    "query": "103.252.88.1",
    "region": "HE",
    "regionName": "Hesse",
    "status": "success",
    "timezone": "Europe/Berlin",
    "zip": "60313"
}

So yabs.sh must be removing the " but keeping the \. It should either keep them both (ip-api.com returns valid json after all, there might be no need to alter those strings) or remove them both

from yet-another-bench-script.

masonr avatar masonr commented on May 30, 2024

Just pushed some changes (52f048b) to fix this. Can you give it a test and let me know if it worked? Should leave any instances of \" intact.

from yet-another-bench-script.

plerohellec avatar plerohellec commented on May 30, 2024

I don't know how to test this particular case, I would need a server with an IP address tied to those special ip info strings, which I don't have. But I received a few yabs in the past 10 hours from random IPs, I ran one myself and the generated json is valid.
Thank you for the fix!

from yet-another-bench-script.

masonr avatar masonr commented on May 30, 2024

Right, makes sense. Well please let me know if this comes up again and we'll re-open this issue!

No problem, thanks for the bug report!

from yet-another-bench-script.

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.