adalmia3 / kfm

Automatically exported from code.google.com/p/kfm
0 stars 0 forks source link

Javascript error on file upload IE7 only #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Launch file manager
2. Click upload button

What is the expected output? What do you see instead?
Expected to upload image, instead it launches a browser that is blank with
upload.php in the URL box.

What version of the product are you using? On what operating system?
1.4.5 - XP

Please provide any additional information below.
This error doesn't not occur in FF o IE8 from what I can tell.  It does
upload the image successfully, but it should launch upload.php in a new
browser.

Original issue reported on code.google.com by shayelar...@gmail.com on 10 Mar 2010 at 6:13

GoogleCodeExporter commented 8 years ago
please try the Nightly version (accessible from the front page) to see if the 
problem
has already been solved.

Original comment by kae.verens@gmail.com on 10 Mar 2010 at 7:20

GoogleCodeExporter commented 8 years ago
Javascript error on/after failed upload due to unterminated literal when there 
are more then one errormessages. It occourded aswell when you just klick upload 
with no file choosen.
here is a fix:
original is: 
<code>
else if (count($errors)) echo  
'parent.kfm.alert("'.addslashes(join("\n",$errors)).'");';
</code>
upload.php line 141
change to 
<code>
else if (count($errors)) echo 'parent.kfm.alert("'.addslashes(join(" <br /> 
,$errors)).'");';
</code>
because the error messages are HTML and a php '\n' leads to this linefeed

Original comment by w...@rawiweb.de on 13 Mar 2011 at 12:46