API17

Difference between revisions of "JPath::check"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by the same user not shown)
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
+
* '''Referenced by'''
===Referenced by===
+
** [[JController::addPath/11.1|JController::addPath]]
* [[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 53: 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

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JPath::check[edit]

Description[edit]

Checks for snooping outside of the file system root.

Template: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[edit]

Template:SeeAlso:JPath::check [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />