Update of /cvsroot/linpha/linpha/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1436/include
Modified Files:
metadata_editor.php
Log Message:
[ linpha-Bugs-2022107 ] view all exif doesn't work in 1.3.4 -> fixed
Index: metadata_editor.php
===================================================================
RCS file: /cvsroot/linpha/linpha/include/metadata_editor.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** metadata_editor.php 16 Apr 2008 06:57:08 -0000 1.9
--- metadata_editor.php 20 Jul 2008 13:49:20 -0000 1.10
***************
*** 61,70 ****
include_once(TOP_DIR.'/include/db_connect.php');
- unset($filename);
-
/**
* security
*/
! if(!isset($filename) || strlen($_GET['md5sum']) <> 32)
{
echo "FATAL: expecting length of 32 chars for md5sum parameter...";
--- 61,68 ----
include_once(TOP_DIR.'/include/db_connect.php');
/**
* security
*/
! if(strlen($_GET['md5sum']) <> 32)
{
echo "FATAL: expecting length of 32 chars for md5sum parameter...";
***************
*** 72,79 ****
}
$query = $GLOBALS['db']->Execute("SELECT filename, prev_path FROM ".PREFIX."photos " .
"WHERE md5sum = '".htmlspecialchars($_GET['md5sum'], ENT_QUOTES)."'");
! $path = $query->FetchRow();
! $filename = "../".$path[1]."/".$path[0]."";
?>
<head>
--- 70,89 ----
}
+ unset($filename);
+
$query = $GLOBALS['db']->Execute("SELECT filename, prev_path FROM ".PREFIX."photos " .
"WHERE md5sum = '".htmlspecialchars($_GET['md5sum'], ENT_QUOTES)."'");
!
! if(!$query->EOF)
! {
! $path = $query->FetchRow();
! $filename = "../".$path[1]."/".$path[0]."";
! }
! else
! {
! echo "FATAL: could not get filename for md5sum...";
! exit();
! }
!
?>
<head>
|