Actions

API17

Difference between revisions of "JPath::check"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JPath::check|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JPath::check|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JPath::check ($path, $ds=DIRECTORY_SEPARATOR)
+
public static function check (
 +
        $path
 +
        $ds=DIRECTORY_SEPARATOR
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 32: Line 32:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string A cleaned version of the path
string A cleaned version of the path
+
* '''Defined''' on line 143 of libraries/joomla/filesystem/path.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/filesystem/path.php (line 140)
+
* '''Referenced by'''
* see source code in [[jplatform:filesystem/path.php#cl-140|BitBucket]]
+
** [[JController::addPath/11.1|JController::addPath]]
===Referenced by===
+
* [[JController::addPath/11.1|JController::addPath]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JPath::check source code''' on [[jplatform:filesystem/path.php#cl-135|BitBucket]]
 +
* {{JVer|11.1}} Class [[JPath/11.1|JPath]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]]
 +
* [[JPath::check|Other versions of JPath::check]]
 +
{{SeeAlso:JPath::check}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JPath::check|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JPath::check|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JPath/11.1|JPath]]
+
===User contributed notes===
* [[JPath::check|Other versions of this method]]
+
{{SeeAlso:JPath::check}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 54: Line 54:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JPath]][[Category:JPath::check]]</noinclude>
 
<noinclude>[[Category:JPath]][[Category:JPath::check]]</noinclude>

Revision as of 21:29, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JPath::check

Description

Checks for snooping outside of the file system root.

Description:JPath::check [Edit Descripton]

public static function check (
        $path
        $ds=DIRECTORY_SEPARATOR
)
Parameter Type Default Description
$path string A file system path to check
$ds string DIRECTORY_SEPARATOR Directory separator (optional)
  • Returns string A cleaned version of the path
  • Defined on line 143 of libraries/joomla/filesystem/path.php
  • Since Joomla 11.1
  • Referenced by

See also

SeeAlso:JPath::check [Edit See Also]

User contributed notes

<CodeExamplesForm />