GithubHelp home page GithubHelp logo

Comments (3)

zadam avatar zadam commented on May 18, 2024 1

@ghgr hello, thank you for further testing. The previous fix was unescaping the URL in an incorrect place which then made it impossible to find the correct URL in HTML to replace. Bill Gates is now getting properly replaced.

from trilium.

zadam avatar zadam commented on May 18, 2024

Hello, thank you for the detailed report, should be fixed in the next patch release.

from trilium.

ghgr avatar ghgr commented on May 18, 2024

Thank you @zadam !

Just a quick heads up, since you're now escaping the url, the function replaceUrl in notes.js:514 is not matching the original url, and therefore cannot replace the original link with the local one (at api/attachments/...). That means that the image is downloaded, but not linked in the note.

I tried replacing quotedUrl with url but still doesn't work.

In order to replicate:

  • Create a new note
  • Go to this linkedin profile (doesn't matter which one, let's take Bill Gates as an example): https://www.linkedin.com/in/williamhgates/
  • Right click on his profile picture and "Copy Image"
  • Paste into Trilium
  • The image shows
  • Go to "Note Source"
  • See that's pointing to the original source, not the local one api/attachments/...

You can see in the developer console that's making requests to the 3rd party site every time you open the note.

from trilium.

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.