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