|
@@ -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.'&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.'&dir='.$dirhtml.$modehtml.'"';
|
|
|
}
|
|
|
$content .= '><img id="image" src="'.$config['imagepath'] . $dirhtml.'/'.$filehtml.'" class="pelny"/></a><a id="nast" ';
|