@@ -756,7 +756,7 @@ |
||
756 | 756 | ) { |
757 | 757 | } elseif (function_exists('socket_create')) { |
758 | 758 | $cmd = |
759 | - "GET $path " . strtoupper($protocol) . "/1.1\r\n" . |
|
759 | + "get $path " . strtoupper($protocol) . "/1.1\r\n" . |
|
760 | 760 | "Host: $host\r\n" . |
761 | 761 | "Connection: Close\r\n\r\n"; |
762 | 762 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | if (strpos($_, 'RewriteBase')===false) { |
19 | 19 | $warnings[] = $_lang["settings_friendlyurls_alert2"]; |
20 | 20 | } elseif (is_writable($htaccess)) { |
21 | - $_ = preg_replace('@RewriteBase.+@', "RewriteBase {$dir}", $_); |
|
21 | + $_ = preg_replace('@RewriteBase.+@', "rewritebase {$dir}", $_); |
|
22 | 22 | if (!@file_put_contents($htaccess, $_)) { |
23 | 23 | $warnings[] = $_lang["settings_friendlyurls_alert2"]; |
24 | 24 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $warnings[] = $_lang["settings_friendlyurls_alert"]; |
29 | 29 | } elseif ($modx->config['base_url']!=='/') { |
30 | 30 | $_ = file_get_contents($htaccess); |
31 | - $_ = preg_replace('@RewriteBase.+@', "RewriteBase {$dir}", $_); |
|
31 | + $_ = preg_replace('@RewriteBase.+@', "rewritebase {$dir}", $_); |
|
32 | 32 | if (!@file_put_contents($htaccess, $_)) { |
33 | 33 | $warnings[] = $_lang["settings_friendlyurls_alert2"]; |
34 | 34 | } |
@@ -888,7 +888,7 @@ discard block |
||
888 | 888 | protected function sendCommand($command, $commandstring, $expect) |
889 | 889 | { |
890 | 890 | if (!$this->connected()) { |
891 | - $this->setError("Called $command without being connected"); |
|
891 | + $this->setError("called $command without being connected"); |
|
892 | 892 | |
893 | 893 | return false; |
894 | 894 | } |
@@ -970,7 +970,7 @@ discard block |
||
970 | 970 | */ |
971 | 971 | public function verify($name) |
972 | 972 | { |
973 | - return $this->sendCommand('VRFY', "VRFY $name", array(250, 251)); |
|
973 | + return $this->sendCommand('VRFY', "vrfy $name", array(250, 251)); |
|
974 | 974 | } |
975 | 975 | |
976 | 976 | /** |
@@ -90,7 +90,7 @@ |
||
90 | 90 | } |
91 | 91 | </script> |
92 | 92 | |
93 | -JS; |
|
93 | +js; |
|
94 | 94 | $modx->regClientScript($script); |
95 | 95 | } |
96 | 96 | } |