function drupal_encode_path

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 common.inc drupal_encode_path($path)
cle7 common.inc drupal_encode_path($path)
elmsmedia7 common.inc drupal_encode_path($path)
icor7 common.inc drupal_encode_path($path)
meedjum_blog7 common.inc drupal_encode_path($path)
mooc7 common.inc drupal_encode_path($path)

Encodes a Drupal path for use in a URL.

For aesthetic reasons slashes are not escaped.

Note that url() takes care of calling this function, so a path passed to that function should not be encoded in advance.

Parameters

$path: The Drupal path to encode.

Related topics

4 calls to drupal_encode_path()
DrupalPublicStreamWrapper::getExternalUrl in includes/stream_wrappers.inc
Overrides getExternalUrl().
file_create_url in includes/file.inc
Creates a web-accessible URL for a stream to an external or local file.
url in includes/common.inc
Generates an internal or external URL.
_filefield_paths_replace_path in sites/all/modules/ulmus/filefield_paths/filefield_paths.module
Run regular expression over all available text-based fields.

File

includes/common.inc, line 639
Common functions that many Drupal modules will need to reference.

Code

function drupal_encode_path($path) {
  return str_replace('%2F', '/', rawurlencode($path));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.