Open bobmulder opened 3 years ago
Hi there :)
I have an usecase where I should sanitize a filename to be sure it doesn't contain chars like /, >, *, ?, et cetera.
/
>
*
?
As far I can see there is no built in method for that in Laravel, which I expected in the Str helper.
Str
Question: is there interest to have such a method (e.g. Str::filename or Str::sanitize) in the Str helper?
Str::filename
Str::sanitize
Regards, Bob
Hi there :)
I have an usecase where I should sanitize a filename to be sure it doesn't contain chars like
/
,>
,*
,?
, et cetera.As far I can see there is no built in method for that in Laravel, which I expected in the
Str
helper.Question: is there interest to have such a method (e.g.
Str::filename
orStr::sanitize
) in theStr
helper?Regards, Bob