Index: trunk/extensions/WebStore/WebStorePostFile.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | class WebStorePostFile { |
5 | | - public static $curl, $content, $outputFile, $errno, $error, $responseCode, $contentType, $success, |
| 5 | + var $curl, $content, $outputFile, $errno, $error, $responseCode, $contentType, $success, |
6 | 6 | $sourceFile, $sourcePath; |
7 | 7 | |
8 | 8 | static function post( $url, $fileParamName, $sourcePath, $params = array(), $proxy = false, |
Index: trunk/extensions/WebStore/404-handler.php |
— | — | @@ -30,7 +30,8 @@ |
31 | 31 | $this->real404(); |
32 | 32 | return true; |
33 | 33 | } |
34 | | - $rel = substr( $url, strlen( $thumbBase ) + 1 ); //plus one for slash |
| 34 | + |
| 35 | + $rel = substr( $url, strlen( $thumbBase ) + 1 ); // plus one for slash |
35 | 36 | // Check for path traversal |
36 | 37 | if ( !$this->validateFilename( $rel ) ) { |
37 | 38 | header( 'X-Debug: invalid path traversal' ); |
— | — | @@ -40,7 +41,6 @@ |
41 | 42 | |
42 | 43 | if ( !preg_match( '!^(\w)/(\w\w)/([^/]*)/([^/]*)$!', $rel, $parts ) ) { |
43 | 44 | header( 'X-Debug: regex mismatch' ); |
44 | | - print $rel; |
45 | 45 | $this->real404(); |
46 | 46 | return false; |
47 | 47 | } |
Index: trunk/extensions/ProofreadPage/proofread_index.js |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | |
15 | 15 | function proofreadpage_index_init() { |
16 | 16 | |
17 | | - if(!self.proofreadpage_debug) return; |
| 17 | + if(!self.proofreadpage_debug) return; |
18 | 18 | |
19 | 19 | var toolbar = document.getElementById("toolbar"); |
20 | 20 | toolbar.parentNode.removeChild(toolbar); |
— | — | @@ -86,9 +86,6 @@ |
87 | 87 | param_name = m[0]; |
88 | 88 | |
89 | 89 | value = form.elements[param_name].value; |
90 | | - //remove training \n |
91 | | - value = value.replace(/\n$/,''); |
92 | | - //replace pipe symbol |
93 | 90 | value = value.replace(/\|/g,'{{!}}'); |
94 | 91 | //not for links! |
95 | 92 | value = value.replace(/\[\[(.*?)\{\{!\}\}(.*?)\]\]/g,'[[$1|$2]]'); |