[Owncloud] Fwd: [owncloud] Fehler melden oc-676 - "Online PDF viewer not working" updated

Thomas Müller thomas.mueller at tmit.eu
Mon May 28 18:37:23 UTC 2012


Hi

Can somebody please take care of this?
I'm on vac.

Thx,

Tom

-------- Originalnachricht --------
Betreff: [owncloud] Fehler melden oc-676 - "Online PDF viewer not working" updated
Von: The Bug Genie Automailer <bugs at owncloud.org>
An: DeepDiver <thomas.mueller at tmit.eu>
Cc: 

Content-Type: text/plain;

	charset="utf-8"

Content-Transfer-Encoding: 7bit



Hi, DeepDiver!
Bug report oc-676 - Online PDF viewer not working was updated by dseichter.

I found the solution (in case of not being a member of the development team, I have to post it here):

Change in
/apps/files/js/fileactionns.js

the line from
<source lang="javascript">window.location='index.php?dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);</source>

to
<source lang="javascript">window.location='?app=files&dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);</source>

and everything works fine.
---
Show issue: http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-676Show ownCloud project dashboard: http://bugs.owncloud.org/thebuggenie/owncloud



Content-Type: text/html;

	charset="utf-8"

Content-Transfer-Encoding: 7bit



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><title>ownCloud</title></head><body><div style="font-family: 'Trebuchet MS', 'Liberation Sans', 'Bitstream Vera Sans', 'Luxi Sans', Verdana, sans-serif; font-size: 11px; color: #333;">
	Hi, DeepDiver!<br>
	Bug report oc-676 - Online PDF viewer not working was updated by dseichter.<br>
	<br>
	I found the solution (in case of not being a member of the development team, I have to post it here): 
<br><br> 
Change in 
/apps/files/js/fileactionns.js 
<br><br> 
the line from 
<code><pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">window.<span style="color: #660066;">location</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'index.php?dir='</span><span style="color: #339933;">+</span>encodeURIComponent<span style="color: #009900;">(</span>$<span style="color: #009900;">(</span><span style="color: #3366CC;">'#dir'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">val</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">(</span><span style="color: #009966; font-style: italic;">/%2F/g</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'/'</
 span><span style="color: #009900;">)</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'/'</span><span style="color: #339933;">+</span>encodeURIComponent<span style="color: #009900;">(</span>filename<span style="color: #009900;">)</span><span style="color: #339933;">;</span></div></li></ol></pre></code> 
<br><br> 
to 
<code><pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">window.<span style="color: #660066;">location</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'?app=files&dir='</span><span style="color: #339933;">+</span>encodeURIComponent<span style="color: #009900;">(</span>$<span style="color: #009900;">(</span><span style="color: #3366CC;">'#dir'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">val</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">(</span><span style="color: #009966; font-style: italic;">/%2F/g</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">
 '/'</span><span style="color: #009900;">)</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'/'</span><span style="color: #339933;">+</span>encodeURIComponent<span style="color: #009900;">(</span>filename<span style="color: #009900;">)</span><span style="color: #339933;">;</span></div></li></ol></pre></code> 
<br><br> 
and everything works fine. 
	<br>
	<div style="color: #888;">
	--
	<br>
	Show issue: <a href="http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-676">http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-676</a><br>
	Show ownCloud project dashboard: <a href="http://bugs.owncloud.org/thebuggenie/owncloud">http://bugs.owncloud.org/thebuggenie/owncloud</a>	</div>
</div></body></html>




More information about the Owncloud mailing list