airani / wp-auto-upload

Automatically detect external images in the Wordpress post content and import images to your site and adding to the media library and finally replace image urls with new urls

Home Page:http://wordpress.org/plugins/auto-upload-images/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image URL with filename that have multiple equal sign cause error

baoc75 opened this issue · comments

I have a site with Codecogs (as a math formula editor - LaTex editor).
For example, each formula imports from Codecogs will look like this:
<img src="https://latex.codecogs.com/gif.latex?|t|\leq&amp;space;1" alt="|t|\leq 1" align="absmiddle" />

My file name setting is: %timestamp%-%filename

Codecogs:
<img src="https://latex.codecogs.com/gif.latex?y=f(x)=\frac{g(x)}{h(x)}" alt="y=f(x)=\frac{g(x)}{h(x)}" align="absmiddle">

The plugin then change to local url, and it returns 404 Error.
<img src="https://abc.com/wp-content/uploads/2019/05/29_timestamp-filename.gif=\frac{g(x)}{h(x)}" alt="y=f(x)=\frac{g(x)}{h(x)}" align="absmiddle">

This URL https://abc.com/wp-content/uploads/2019/05/29_timestamp-filename.gif return a path of formula image: y = f(x) while the full formula is: y=f(x)=\frac{g(x)}{h(x)}

So I believed that the "=" characters cause the problem as the plugin think that it's over so it don't continue fetch the image any more?