Sfoglia il codice sorgente

Jeszcze jedna poprawka plików ze spacjami

k4be 10 mesi fa
parent
commit
12619387f5
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      image.php

+ 4 - 4
image.php

@@ -39,8 +39,8 @@ if (!$fileinfo) {
 	die('File not found');
 }
 
-$dirhtml = urlencode($dirinfo['path']);
-$filehtml = urlencode($fileinfo['path']);
+$dirhtml = rawurlencode($dirinfo['path']);
+$filehtml = rawurlencode($fileinfo['path']);
 if ($mode) {
 	$modehtml = '&mode=' . urlencode($mode);
 } else {
@@ -49,7 +49,7 @@ if ($mode) {
 
 $content = '<div class="full-image-div"><a class="gora" href="dir.php?dir='.$dirhtml.$modehtml.'"></a><a id="poprz" ';
 if ($prev) {
-	$prevhtml = urlencode($prev['path']);
+	$prevhtml = rawurlencode($prev['path']);
 	$content .= 'href="image.php?file='.$prevhtml.'&amp;dir='.$dirhtml.$modehtml.'"';
 } else {
 	$content .= 'style="display:none;"';
@@ -57,7 +57,7 @@ if ($prev) {
 
 $content .= '></a><div><a id="imagelink"';
 if ($next) {
-	$nexthtml = urlencode($next['path']);
+	$nexthtml = rawurlencode($next['path']);
 	$content .= ' href="image.php?file='.$nexthtml.'&amp;dir='.$dirhtml.$modehtml.'"';
 }
 $content .= '><img id="image" src="'.$config['imagepath'] . $dirhtml.'/'.$filehtml.'" class="pelny"/></a><a id="nast" ';