Skip to content

Commit

Permalink
Security fixes 21
Browse files Browse the repository at this point in the history
  • Loading branch information
robertogagliotta authored and bradymiller committed Oct 14, 2015
1 parent e6d7090 commit 524d761
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions interface/patient_file/upload_dialog.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
<?php
// Copyright (C) 2009-2010 Rod Roark <[email protected]>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
/**
* This script upload image to file.
*
* Copyright (C) 2009-2010 Rod Roark <[email protected]>
*
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http:https://opensource.org/licenses/gpl-license.php>;.
*
* @package OpenEMR
* @author Rod Roark <[email protected]>
* @author Roberto Vasquez <[email protected]>
* @link http:https://www.open-emr.org
*/

require_once("../globals.php");

Expand Down Expand Up @@ -83,7 +98,7 @@

</center>

<form method="post" name="main" action="upload_dialog.php?patientid=<?php echo $patientid ?>&file=<?php echo $what ?>" enctype="multipart/form-data">
<form method="post" name="main" action="upload_dialog.php?patientid=<?php echo attr($patientid) ?>&file=<?php echo attr($what) ?>" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="4000000">

<center>
Expand Down

0 comments on commit 524d761

Please sign in to comment.