﻿200c200
< 						document.location.href = downloadUrl;
---
> 						document.location.href = encodeURI(downloadUrl);
224c224
< 							document.location.href = downloadUrl;							
---
> 							document.location.href = encodeURI(downloadUrl);
306a307,344
> 
> 							for (var i=0; i<ajaxplorer.getFilesList().getItems().length; i++)
> 							{
> 								var  rowItem = ajaxplorer.getFilesList().getItems()[i];
> 								if(rowItem.getAttribute('is_image')=='1')
> 									rowItem.setAttribute('filename', encodeURI(rowItem.getAttribute('filename')));
> 							}
> 
> 							ajaxplorer.actionBar.diaporama.close =	function()
> 																	{
> 																		for (var i=0; i<ajaxplorer.getFilesList().getItems().length; i++)
> 																		{
> 																			var  rowItem = ajaxplorer.getFilesList().getItems()[i];
> 																			if(rowItem.getAttribute('is_image')=='1')
> 																				rowItem.setAttribute('filename', decodeURI(rowItem.getAttribute('filename')));
> 																		}
> 
> 																		this.currentFile = null;
> 																		this.items = null;
> 																		this.imgTag.src = '';
> 																		this.stop();
> 																		if(this.fullscreenMode) this.exitFullScreen();
> 																	};
> 
> 							ajaxplorer.actionBar.diaporama.updateModalTitle =	function()
> 																				{
> 																						var titleDiv = $(modal.dialogTitle);
> 																						var crtTitle = titleDiv.select('span.titleString')[0];
> 																						var filenameSpans = crtTitle.select('span');
> 																						var text = ' - '+getBaseName(decodeURI(this.currentFile)) + ' ('+this.sizes.get(this.currentFile).width+' X '+this.sizes.get(this.currentFile).height+')';
> 																						if(filenameSpans.length) filenameSpans[0].innerHTML = text;
> 																						else {
> 																							newSpan = document.createElement('span');
> 																							newSpan.appendChild(document.createTextNode(text));
> 																							crtTitle.appendChild(newSpan);
> 																						}
> 																				};
> 
702c740,741
< 						<img src="content.php?action=image_proxy&get_thumb=true&file=#{filename}" #{compute_image_dimensions}>
---
> 						<img id='imgThumb' src="content.php?action=image_proxy&get_thumb=true&file=#{filename}" #{compute_image_dimensions}>
> 						<script language="javascript">$('imgThumb').src = "content.php?action=image_proxy&get_thumb=true&file=" + ((decodeURI('#{filename}')=='#{filename}')?encodeURI('#{filename}'):'#{filename}');</script>
