summaryrefslogtreecommitdiff
path: root/includes/filetransfer/filetransfer.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/filetransfer/filetransfer.inc')
-rw-r--r--includes/filetransfer/filetransfer.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/filetransfer/filetransfer.inc b/includes/filetransfer/filetransfer.inc
index cdd6e2cbf..27d6815a0 100644
--- a/includes/filetransfer/filetransfer.inc
+++ b/includes/filetransfer/filetransfer.inc
@@ -5,7 +5,7 @@
* Base FileTransfer class.
*
* Classes extending this class perform file operations on directories not
- * writeable by the webserver. To achieve this, the class should connect back
+ * writable by the webserver. To achieve this, the class should connect back
* to the server using some backend (for example FTP or SSH). To keep security,
* the password should always be asked from the user and never stored. For
* safety, all methods operate only inside a "jail", by default the Drupal root.
@@ -17,7 +17,7 @@ abstract class FileTransfer {
protected $port;
/**
- * The constructer for the UpdateConnection class. This method is also called
+ * The constructor for the UpdateConnection class. This method is also called
* from the classes that extend this class and override this method.
*/
function __construct($jail) {
@@ -150,7 +150,7 @@ abstract class FileTransfer {
/**
* Returns a modified path suitable for passing to the server.
- * If a path is a windows path, makes it posix compliant by removing the drive letter.
+ * If a path is a windows path, makes it POSIX compliant by removing the drive letter.
* If $this->chroot has a value, it is stripped from the path to allow for
* chroot'd filetransfer systems.
*
@@ -171,13 +171,13 @@ abstract class FileTransfer {
}
/**
- * Changes backslahes to slashes, also removes a trailing slash.
+ * Changes backslashes to slashes, also removes a trailing slash.
*
* @param string $path
* @return string
*/
function sanitizePath($path) {
- $path = str_replace('\\', '/', $path); // Windows path sanitiation.
+ $path = str_replace('\\', '/', $path); // Windows path sanitization.
if (substr($path, -1) == '/') {
$path = substr($path, 0, -1);
}