Git Product home page Git Product logo

Comments (2)

gruns avatar gruns commented on August 30, 2024

Awesome find.

Fixed in furl v0.4.95, where a ValueError is raised if the host is egregiously
invalid.

>>> import furl
>>> furl.__version__
'0.4.95'
>>> from furl import furl
>>> f = furl('https://user:[email protected]/path/goes/here')
>>> f.host = 'evil:[email protected]'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/furl/furl.py", line 1291, in __setattr__
    object.__setattr__(self, attr, value)
  File "/usr/local/lib/python2.7/dist-packages/furl/furl.py", line 930, in host
    raise ValueError(errmsg % host)
ValueError: Invalid host 'evil:[email protected]'. Host strings must only contain [\.\-a-zA-Z0-9] and can't have adjacent periods.

Upgrade with pip install furl -U.

Thank you for the thorough, detailed Issue and bringing this bug to my
attention, Vincent. Don't hesitate to let me know if there's anything else I can
do for you.

from furl.

nvie avatar nvie commented on August 30, 2024

Thanks for the fix!

from furl.

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.