PIXEL
PIXEL copied to clipboard
The filenames in the webserver need apostrophes to be escaped
The webserver makes buttons with ONCLICK="functionname('filename')", but when filename contains apostrophes or double quotes, it breaks the javascript. These need to be escaped, or replaced in the same way you replace spaces with %20
Can you tell me what you were doing? None of the images I see have quotes special characters in them?
I think was just going through the list of images in the web server then and inspecting the elements when it failed and noticed apostrophes in the filenames, which early-terminated the string parameters
But I made a recursive scan function, and it found 1019 PNG files in the Pixelcade directory structure with apostrophes in them
I included the list in case it's handy. new 1.txt
#32 Made a PR for this, when @alinke get back from vacation he can review it and potentially get it merged.