Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add Inventory item, Image upload failed...
09-10-2019, 04:50 PM,
#15
RE: Add Inventory item, Image upload failed...
(09-10-2019, 11:04 AM)TurboPT Wrote: I thought we already did, but if not, we probably should, as that character would be invalid in a file name. (clashes with path use)

I tried using touch, mv, and cp with a / in the filename, and the fail message had either "directory not found" or "file or directory not found".

The function says:

if (mb_strstr($CheckVariable, "'") or mb_strstr($CheckVariable, '+') or mb_strstr($CheckVariable, '?') or mb_strstr($CheckVariable, '.') or mb_strstr($CheckVariable, "\"") or mb_strstr($CheckVariable, '&') or mb_strstr($CheckVariable, "\\") or mb_strstr($CheckVariable, '"') or mb_strstr($CheckVariable, '>') or mb_strstr($CheckVariable, '<'))

So no, it checks for '\' but not '/'

Tim
Reply


Messages In This Thread
RE: Add Inventory item, Image upload failed... - by TimSchofield - 09-10-2019, 04:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)