Changeset 10457
- Timestamp:
- 11/01/10 15:46:35 (3 years ago)
- Files:
-
- modules/branches/2.7 (modified) (1 prop)
- modules/branches/2.7/core/module.xml (modified) (2 diffs)
- modules/branches/2.7/core/page.trunks.php (modified) (1 diff)
- modules/branches/2.7/music/module.xml (modified) (2 diffs)
- modules/branches/2.7/music/page.music.php (modified) (6 diffs)
- modules/branches/2.7/recordings/module.xml (modified) (2 diffs)
- modules/branches/2.7/recordings/page.recordings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.7
- Property svnmerge-integrated changed from /modules/branches/2.6:1-8497,8589,8613,8620,8651,8672,9414-9416,9752,9773 /modules/branches/2.8:1-9044,9047,9049-9054,9056-9070,9072-9073,9075,9079-9080,9082-9085,9088-9089,9092-9093,9095-9098,9102,9105,9107-9123,9127-9128,9130-9132,9137,9149-9204,9211-9214,9216,9218-9224,9230-9232,9234,9237-9239,9248-9252,9257-9262,9267-9270,9272-9274,9277-9278,9280,9282,9288-9292,9295,9297,9300-9324,9326-9327,9329-9342,9345-9349,9353-9354,9358,9363-9376,9378-9379,9385,9387-9389,9392-9393,9395-9405,9407-9408,9410,9414-9421,9423-9424,9440,9442,9446-9449,9451-9452,9454-9458,9460-9462,9464-9469,9474-9475,9483-9484,9486,9489,9495,9500-9502,9504,9508,9607,9845,9880,9976,10020-10021,10299,10338,10391,10418,10432 to /modules/branches/2.6:1-8497,8589,8613,8620,8651,8672,9414-9416,9752,9773 /modules/branches/2.8:1-9044,9047,9049-9054,9056-9070,9072-9073,9075,9079-9080,9082-9085,9088-9089,9092-9093,9095-9098,9102,9105,9107-9123,9127-9128,9130-9132,9137,9149-9204,9211-9214,9216,9218-9224,9230-9232,9234,9237-9239,9248-9252,9257-9262,9267-9270,9272-9274,9277-9278,9280,9282,9288-9292,9295,9297,9300-9324,9326-9327,9329-9342,9345-9349,9353-9354,9358,9363-9376,9378-9379,9385,9387-9389,9392-9393,9395-9405,9407-9408,9410,9414-9421,9423-9424,9440,9442,9446-9449,9451-9452,9454-9458,9460-9462,9464-9469,9474-9475,9483-9484,9486,9489,9495,9500-9502,9504,9508,9607,9845,9880,9976,10020-10021,10299,10338,10391,10418,10432,10456
modules/branches/2.7/core/module.xml
r10366 r10457 4 4 <category>Basic</category> 5 5 <name>Core</name> 6 <version>2.7.0. 9</version>6 <version>2.7.0.10</version> 7 7 <publisher>FreePBX</publisher> 8 8 <license>GPLv2+</license> … … 10 10 <canuninstall>no</canuninstall> 11 11 <changelog> 12 *2.7.0.10* #4615 (Security Bug) 12 13 *2.7.0.9* #4396, #4507, #4574 13 14 *2.7.0.8* #4089 modules/branches/2.7/core/page.trunks.php
r9747 r10457 25 25 $action = isset($_REQUEST['action'])?$_REQUEST['action']:''; 26 26 27 $tech = strtolower(isset($_REQUEST['tech'])? $_REQUEST['tech']:'');27 $tech = strtolower(isset($_REQUEST['tech'])?htmlentities($_REQUEST['tech']):''); 28 28 $outcid = isset($_REQUEST['outcid'])?$_REQUEST['outcid']:''; 29 29 $maxchans = isset($_REQUEST['maxchans'])?$_REQUEST['maxchans']:''; modules/branches/2.7/music/module.xml
r9606 r10457 2 2 <rawname>music</rawname> 3 3 <name>Music on Hold</name> 4 <version>2.7.0. 5</version>4 <version>2.7.0.6</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> … … 11 11 <description>Uploading and management of sound files (wav, mp3) to be used for on-hold music.</description> 12 12 <changelog> 13 *2.7.0.6* #4615 (Security Bug) 13 14 *2.7.0.5* #4261 14 15 *2.7.0.4* #4157 modules/branches/2.7/music/page.music.php
r9364 r10457 19 19 $randoff = isset($_REQUEST['randoff'])?$_REQUEST['randoff']:''; 20 20 $category = strtr(isset($_REQUEST['category'])?$_REQUEST['category']:''," ./\"\'\`", "------"); 21 $volume = isset($_REQUEST['volume']) && is_numeric($_REQUEST['volume']) ? $_REQUEST['volume'] : ''; 21 22 22 23 // Determine default path to music directory, old default was mohmp3, now settable … … 207 208 $output = 0; 208 209 $returncode = 0; 210 $mohfile = escapeshellcmd($mohfile); 209 211 $origmohfile=$path_to_dir."/orig_".$mohfile; 210 212 if ($amp_conf['AMPMPG123']) { … … 427 429 <tr> 428 430 <td><a href="#" class="info"><?php echo _("Optional Format:")?><span><?php echo _("Optional value for \"format=\" line used to provide the format to Asterisk. This should be a format understood by Asterisk such as ulaw, and is specific to the streaming application you are using. See information on musiconhold.conf configuration for different audio and Internet streaming source options.")?> </span></a></td> 429 <td><input type="text" name="format" size="6" value="<?php echo $format?>"></td>431 <td><input type="text" name="format" size="6" value="<?php echo htmlentities($format)?>"></td> 430 432 </tr> 431 433 <tr> … … 505 507 echo "<h5> PHP "._("Error Processing")."! "._("No file provided")." "._("Please select a file to upload")."</h5>"; 506 508 } else { 507 echo "<h5> PHP "._("Error Processing")." ". $_FILES['mohfile']['name']."! "._("Check")." upload_max_filesize "._("in")." /etc/php.ini</h5>";509 echo "<h5> PHP "._("Error Processing")." ".htmlentities($_FILES['mohfile']['name'])."! "._("Check")." upload_max_filesize "._("in")." /etc/php.ini</h5>"; 508 510 } 509 511 } … … 513 515 514 516 if ($amp_conf['AMPMPG123']) { 515 $process_err = process_mohfile($_FILES['mohfile']['name'],true,$ _REQUEST['volume']);517 $process_err = process_mohfile($_FILES['mohfile']['name'],true,$volume); 516 518 } else { 517 519 $process_err = process_mohfile($_FILES['mohfile']['name'],($_REQUEST['onlywav'] != '')); … … 519 521 520 522 if (isset($process_err)) { 521 echo "<h5>"._("Error Processing").": \"$process_err\" for ". $_FILES['mohfile']['name']."!</h5>\n";523 echo "<h5>"._("Error Processing").": \"$process_err\" for ".htmlentities($_FILES['mohfile']['name'])."!</h5>\n"; 522 524 echo "<h5>"._("This is not a fatal error, your Music on Hold may still work.")."</h5>\n"; 523 525 } else { 524 echo "<h5>"._("Completed processing")." ". $_FILES['mohfile']['name']."!</h5>";526 echo "<h5>"._("Completed processing")." ".htmlentities($_FILES['mohfile']['name'])."!</h5>"; 525 527 } 526 528 needreload(); modules/branches/2.7/recordings/module.xml
r10350 r10457 2 2 <rawname>recordings</rawname> 3 3 <name>Recordings</name> 4 <version>3.3.9. 8</version>4 <version>3.3.9.9</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> … … 11 11 <description>Creates and manages system recordings, used by many other modules (eg, IVR).</description> 12 12 <changelog> 13 *3.3.9.9* #4615 (Security Bug) 13 14 *3.3.9.8* #4568 Security Patch 14 15 *3.3.9.7* #4553 Security Patch modules/branches/2.7/recordings/page.recordings.php
r10340 r10457 19 19 // Lite weight popup code here, don't need everything else below 20 20 // 21 21 22 switch ($action) { 22 23 case 'popup': … … 79 80 break; 80 81 case "recorded": 81 // Clean up the filename, take out any nasty characters82 // Clean up the filename,suffix, take out any nasty characters 82 83 $filename = escapeshellcmd(strtr($rname, '/ ', '__')); 84 $suffix = escapeshellcmd(strtr($suffix, '/ ', '__')); 83 85 if (!file_exists($astsnd."custom")) { 84 86 if (!mkdir($astsnd."custom", 0775)) {
