Impossibile uploadare un file di testo: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
No edit summary
 
Aggiunta categoria MediaWiki
Line 36: Line 36:


Perchè il cesso analizza se ci sono stringhe html o php nel file.
Perchè il cesso analizza se ci sono stringhe html o php nel file.
[[Citegory:MediaWiki#]]

Revision as of 18:54, 4 June 2005

Se si tenta di uploadare un file di testo, ad esempio un patch tipo:

--- setup.php	2005-04-06 21:32:21.656879136 +0200
+++ setup-1.3.php	2005-04-06 21:28:47.451443312 +0200
@@ -1,5 +1,5 @@
 <?php
-/* Version 1.2 */
+/* Version 1.3 */
 
 function squirrelmail_plugin_init_ip_users() {
    global $squirrelmail_plugin_hooks;
@@ -45,7 +45,7 @@
       echo "<html><body bgcolor=\"ffffff\">\n";
         //      printf("Network:%s Address:%s\n<br>",$rete, $indirizzo);
         //      print("Network: $rete -  Address: $indirizzo \n<br>");
-      error_username_password_incorrect();
+      logout_error( _("Unknown user or password incorrect.") );
       exit;
    }
 }

E si ottiene il messaggio "Your upload file is corrupt"

Togliere da include/SpecialUpload.php l'if contenuto:

function verify( $tmpfile, $extension ) {
		wfDebug( "$fname: start verify\n" );
		if( $this->triggersIEbug( $tmpfile ) ||
		    $this->triggersSafariBug( $tmpfile ) ) {
			return false;
		}

Perchè il cesso analizza se ci sono stringhe html o php nel file.

Citegory:MediaWiki#