Changeset 3203397
- Timestamp:
- 12/06/2024 06:43:41 AM (16 months ago)
- Location:
- quran-text-multilanguage/trunk
- Files:
-
- 4 edited
-
inc/functions_quran.php (modified) (1 diff)
-
inc/template.php (modified) (2 diffs)
-
quran-text-multilanguage.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
quran-text-multilanguage/trunk/inc/functions_quran.php
r2827902 r3203397 453 453 454 454 if(recitator_quran == "Maheralmeaqly"){var nbr_quran = "<?php echo sprintf( "%03d", $sura );?>";} 455 if(recitator_quran == "ElGhamidi"){ var nbr_quran = "<?php echo $_GET['sourate'];?>"}455 if(recitator_quran == "ElGhamidi"){ var nbr_quran = "<?php echo esc_js(sanitize_text_field($_GET['sourate'] ?? '')); ?>";} 456 456 if(recitator_quran == "Soudais"){var nbr_quran = "<?php echo sprintf( "%03d", $sura );?>"} 457 457 if(recitator_quran == "Abdelbasset"){var nbr_quran = "<?php echo sprintf( "%03d", $sura );?>"} -
quran-text-multilanguage/trunk/inc/template.php
r3128827 r3203397 188 188 189 189 190 if(isset($_GET['sourate']) && isset($_GET['lang'])){ 191 192 preg_match("/[0-9]{1,3}$/", $_GET['sourate'], $matches); 193 190 if(isset($_GET['sourate']) && isset($_GET['lang'])) { 191 if(preg_match("/^([1-9]|[1-9][0-9]|1[0-1][0-4])$/", $_GET['sourate'], $matches)) { 194 192 $sura = $matches[0]; 195 193 ?> 196 194 <script> 197 195 document.addEventListener('DOMContentLoaded', function() { 198 var sourate = "<?php echo $_GET['sourate']; ?>";199 var lang = "<?php echo $_GET['lang']; ?>";200 var UrlPrevSourate = "?sourate=" + sourate + "&lang=" + lang;196 var sourate = "<?php echo esc_js(sanitize_text_field($sura)); ?>"; 197 var lang = "<?php echo esc_js(sanitize_text_field($_GET['lang'] ?? '')); ?>"; 198 var UrlPrevSourate = "?sourate=" + encodeURIComponent(sourate) + "&lang=" + encodeURIComponent(lang); 201 199 history.pushState({ path: window.location.pathname }, '', UrlPrevSourate); 202 200 }); … … 204 202 <div id="result"> 205 203 <?php 206 showSura($sura,$_GET['lang']); 207 204 showSura($sura, $_GET['lang']); 205 ?> 206 </div> 207 <?php 208 } else { 209 echo '<div class="error">Invalid surah number</div>'; 210 } 208 211 } 209 212 -
quran-text-multilanguage/trunk/quran-text-multilanguage.php
r3128827 r3203397 7 7 Description: Quran Text Multilanguage translated into 29 languages. Full ajax version and responsive. Fully customizable. More reciter... 8 8 9 Version: 2.3.2 110 9 Version: 2.3.22 10 * Important: This update includes critical security fixes 11 11 Author: Bahmed karim 12 12 -
quran-text-multilanguage/trunk/readme.txt
r3128827 r3203397 365 365 = 2.3.21 366 366 - fix json error api rest 367 368 = 2.3.22 = 369 * Security: Critical security fix for XSS vulnerability in sourate parameter 370 * IMPORTANT: All users should update immediately
Note: See TracChangeset
for help on using the changeset viewer.