System user replaces wrong URL when it downloads local copy of image

(Gerhard Schlager) #1

Hmm, a bit off-topic, but did the system user replace the wrong image URL (within the code fences) after downloading the local copy?

That looks wrong to me.

Add setting to disable hotlinking of large image files
(Sam Saffron) #2

Yeah that is absolutely a bug, can you separate item on it?

(Sam Saffron) #3

I vaguely recall this was opened in the past with a status denied…

Honestly I do not think we should ever be mucking with raw and only apply this kind of magic to cooked. I think that is the root of this bug.

If we are mucking with raw fixing this is actually quite a giant headache cause we would need to do the replacement in a reverse markdown parser or hoist stuff using magics.

(Leo McArdle) #4

This looks like that:


I found one direct reference to this topic, but it was closed so I couldn’t piggyback off of it. I have some cases where the URL of an image is of minor significance, but certainly not of paramount importance. Overall, I prefer to have the nicety of locally cached images, but there’s a few cases where I’d like to escape that context especially in code blocks of specific posts.

Might there be a way to do it on a by-post or by-topic basis? How about a tag that or html component that tells that feature to ignore the post? This is certainly not a high priority thing and I wouldn’t spend a lot of cycles on it, I just thought I’d bring it up again to see if there may have been any architectural changes that makes this an easier fix.

The best workaround I’ve found is just to screenshot the text in it’s original form, but that of course doesn’t allow for easy copying from the code blocks.

(Joshua Rosenfeld) #7

Nice old bug report you dug up! I swear we have a more recent report of this that is still open and active, but I’m failing at search right now.

(Gerhard Schlager) #8

Are you including the image link two times? Once as normal link and once within a code block? If so, then it’s this bug.


I am linking twice, once in a code block and once as the real image. Both links are replaced with the same /uploads/default/.../... url

(Kane York) #10

The curious instance about this thread’s OP’s report is that the original image is nowhere in the post raw - it’s only in the embed.