GithubHelp home page GithubHelp logo

put.nu's Introduction

put.nu

Free file hosting

Dependencies: flask flask_login passlib

put.nu's People

Contributors

cory2067 avatar samcyanide avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

put.nu's Issues

Avoid homoglyphs when generating new URLs

The hash function that generates file names currently uses easily confused characters, like O, 0, I, and l. When viewing the URL on put.nu or displaying the link to another app that uses a sans-serif font, it is difficult or impossible to visually determine the URL without trying multiple options.

Capital I (/eye/) or lowercase l (/elle/)?
drawing

Zero or capital O (/oh/)
drawing

I tried running the code locally to see where I could change the hash function. It looks like the latest version of the code here on GitHub does not hash filenames. Instead, the app uses whatever filename the user uses locally. That is, if the user uploads mymovie.mp4 from their local machine, it will be available at {host}/files/mymovie.mp4.

Is there a different version of the code that is running in production, which does use hashing? If so, can I work off of that codebase in order to submit a PR removing homoglyphs from the hashed filenames?

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.