For more information... RTFM!
NAVIGATION
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

filesafe

Ensure that the input string is safe to be used as a filename, either on the filesystem or in the path component of a URI, by encoding "invalid" characters.

Example

[filter filesafe]/tmp/uploads/filename.txt |oops[/filter]

Results in:

/tmp/uploads/filename.txt%7Coops

Source code

sub {
    return Vend::Util::escape_chars(shift);
}

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Thursday 15 February 2007 at 7:44 PM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us