Changeset 1326142
- Timestamp:
- 01/12/2016 12:24:55 AM (10 years ago)
- Location:
- magic-fields-2/trunk
- Files:
-
- 3 edited
-
admin/mf_upload.php (modified) (4 diffs)
-
main.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
magic-fields-2/trunk/admin/mf_upload.php
r1321819 r1326142 111 111 var mf_par = window.parent; 112 112 var mf_js = <?php echo json_encode($resp); ?>; 113 mf_par.<?php echo $_POST['callback']; ?>(mf_js);113 mf_par.<?php echo htmlspecialchars($_POST['callback'], ENT_QUOTES, 'UTF-8'); ?>(mf_js); 114 114 115 115 var par = window.parent.document; 116 var iframe = par.getElementById('iframe_upload_<?php echo $_POST["input_name"]?>');116 var iframe = par.getElementById('iframe_upload_<?php echo htmlspecialchars($_POST['input_name'], ENT_QUOTES, 'UTF-8');?>'); 117 117 iframe.style.display=""; 118 118 </script> … … 144 144 // hide old iframe 145 145 var par = window.parent.document; 146 var iframe = par.getElementById('iframe_upload_<?php echo $_GET["input_name"]?>');146 var iframe = par.getElementById('iframe_upload_<?php echo htmlspecialchars($_GET['input_name'], ENT_QUOTES, 'UTF-8');?>'); 147 147 iframe.style.display="none"; 148 148 149 par.getElementById("response-<?php echo $_GET['input_name'];?>").style.display = "block";150 par.getElementById("response-<?php echo $_GET['input_name'];?>").innerHTML = "Transferring ";149 par.getElementById("response-<?php echo htmlspecialchars($_GET['input_name'], ENT_QUOTES, 'UTF-8');?>").style.display = "block"; 150 par.getElementById("response-<?php echo htmlspecialchars($_GET['input_name'], ENT_QUOTES, 'UTF-8');?>").innerHTML = "Transferring "; 151 151 setTimeout("transferring(0)",1000); 152 152 // send … … 162 162 var par = window.parent.document; 163 163 // update progress 164 if (par.getElementById("response-<?php echo $_GET['input_name'];?>").innerHTML.substring(0,5) != "Trans") return;165 par.getElementById("response-<?php echo $_GET['input_name'];?>").innerHTML = newString;164 if (par.getElementById("response-<?php echo htmlspecialchars($_GET['input_name'], ENT_QUOTES, 'UTF-8');?>").innerHTML.substring(0,5) != "Trans") return; 165 par.getElementById("response-<?php echo htmlspecialchars($_GET['input_name'], ENT_QUOTES, 'UTF-8');?>").innerHTML = newString; 166 166 if (dots == 4) dots = 0; else dots = dots + 1; 167 167 setTimeout("transferring("+dots+")",1000) ; … … 175 175 <input id="file" type="file" name="file" onchange="upload()" class="mf-file" /> 176 176 <?php wp_nonce_field('nonce_upload_file','checking'); ?> 177 <input type="hidden" name="input_name" value="<?php echo $_GET["input_name"]?>" />178 <input type="hidden" name="callback" value="<?php echo $_GET["callback"]?>" />177 <input type="hidden" name="input_name" value="<?php echo htmlspecialchars($_GET['input_name'], ENT_QUOTES, 'UTF-8')?>" /> 178 <input type="hidden" name="callback" value="<?php echo htmlspecialchars($_GET['callback'], ENT_QUOTES, 'UTF-8')?>" /> 179 179 <input type="hidden" name="fileframe" value="true" /> 180 <input type="hidden" name="type" value="<?php echo $_GET["type"]?>" />180 <input type="hidden" name="type" value="<?php echo htmlspecialchars($_GET['type'], ENT_QUOTES, 'UTF-8')?>" /> 181 181 </form> 182 182 </body> -
magic-fields-2/trunk/main.php
r1321819 r1326142 4 4 * Plugin URI: http://magicfields.org 5 5 * Description: Create custom fields for your post types 6 * Version: 2.3.2. 26 * Version: 2.3.2.3 7 7 * Author: Hunk 8 8 * Author URI: http://magicfields.org -
magic-fields-2/trunk/readme.txt
r1321819 r1326142 5 5 Requires at least: 3.1 6 6 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=edgar%40programador%2ecom&lc=GB&item_name=Donation%20Magic%20Fields¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest 7 Stable tag: 2.3.2. 27 Stable tag: 2.3.2.3 8 8 Description: Magic Fields 2 is a feature rich Wordpress CMS plugin 9 9 … … 28 28 29 29 == Changelog == 30 31 = 2.3.2.3 = 32 * Patch for mf_upload.php (sanitize input), thanks @robre 30 33 31 34 = 2.3.2.2 =
Note: See TracChangeset
for help on using the changeset viewer.