Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • _zp_captcha
  • _zp_HTML_cache
  • external_auth
  • lib_GD_Options
  • lib_Imagick_Options
  • lib_NoGraphics
  • utf8
  • zpFunctions

Functions

  • add_context
  • applyMacros
  • byteConvert
  • cacheImage
  • checkAlbumPassword
  • checkObjectsThumb
  • checkPublishDates
  • checkSignature
  • cleanHTML
  • commentsAllowed
  • cron_starter
  • dateTimeConvert
  • db_count
  • db_name
  • debug404
  • debugLogBacktrace
  • debugLogVar
  • dircopy
  • enableExtension
  • extensionEnabled
  • fetchComments
  • filesystemToInternal
  • fix_path_redirect
  • galleryAlbumsPerPage
  • generateLanguageList
  • generateListFromArray
  • generateListFromFiles
  • get_context
  • get_language_string
  • getAllSubAlbumIDs
  • getAllTagsCount
  • getAllTagsUnique
  • getAllTranslations
  • getBare
  • getEnabledPlugins
  • getImageRotation
  • getItemByID
  • getLanguageArray
  • getLanguageFlag
  • getLinkHTML
  • getMacros
  • getManagedAlbumList
  • getNestedAlbumList
  • getNotViewableAlbums
  • getNotViewableImages
  • getOptionFromDB
  • getPlugin
  • getPluginFiles
  • getSerializedArray
  • getSetClause
  • getTagCountByAccess
  • gettext_pl
  • gettext_th
  • getThemeOption
  • getTimezones
  • getUrAlbum
  • getUserIP
  • getUserLocale
  • getWhereClause
  • getXSRFToken
  • handleSearchParms
  • html_decode
  • html_encode
  • html_encodeTagged
  • i18nSetLocale
  • imageDebug
  • imageError
  • in_context
  • internalToFilesystem
  • iptc_make_tag
  • is_connected
  • is_valid_email_zp
  • isImagePhoto
  • isImageVideo
  • isValidURL
  • ksesProcess
  • load_zenpage_news
  • load_zenpage_pages
  • lookupSortKey
  • mb_strlen
  • mb_strpos
  • mb_strrpos
  • mb_strtolower
  • mb_strtoupper
  • mb_substr
  • mb_substr_count
  • mkdir_recursive
  • myts_date
  • ngettext_pl
  • ngettext_th
  • parseAllowedTags
  • parseHttpAcceptLanguage
  • populateManagedObjectsList
  • prefix
  • prepareAlbumPage
  • prepareCustomPage
  • prepareImagePage
  • prepareIndexPage
  • printLinkHTML
  • propSizes
  • rc4
  • read_exif_data_protected
  • readTags
  • reconfigureAction
  • reconfigureCS
  • reconfigurePage
  • rem_context
  • restore_context
  • reveal
  • safe_fnmatch
  • sanitize
  • sanitize_numeric
  • sanitize_path
  • sanitize_script
  • sanitize_string
  • sanitizeRedirect
  • save_context
  • seoFriendly
  • seoFriendlyJS
  • set_context
  • setMainDomain
  • setThemeOption
  • setThemeOptionDefault
  • setupCurrentLocale
  • setupDomain
  • setupTheme
  • shortenContent
  • shuffle_assoc
  • signatureChange
  • sortByKey
  • sortByMultilingual
  • sortMultiArray
  • storeTags
  • timezoneDiff
  • truncate_string
  • validateLocale
  • XSRFToken
  • zp_clearCookie
  • zp_cookieEncode
  • zp_error
  • zp_getCookie
  • zp_handle_password
  • zp_handle_password_single
  • zp_image_types
  • zp_load_album
  • zp_load_gallery
  • zp_load_image
  • zp_load_page
  • zp_load_request
  • zp_load_search
  • zp_loggedin
  • zp_mail
  • zp_setCookie
  • zpErrorHandler
  • zpFormattedDate
  • zpRewriteURL
  • Overview
  • Package
  • Function
  • Tree
  • Deprecated

Function sanitize_path

Takes user input meant to be used within a path to a file or folder and removes anything that could be insecure or malicious, or result in duplicate representations for the same physical file.

This function is used primarily for album names. NOTE: The initial and trailing slashes are removed!!!

Returns the sanitized path

Package: core
Located at functions-common.php
Parameters summary
string $filename is the path text to filter.
Return value summary
string string
Zenphoto doc API documentation generated by ApiGen