Jeff Zaroyko : decode html entities when using redirect function

Chris Morgan cmorgan at winehq.org
Mon Feb 25 21:41:23 CST 2008


Module: appdb
Branch: master
Commit: 4f27788072404a7bc2f59766617c3102af6102b3
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=4f27788072404a7bc2f59766617c3102af6102b3

Author: Jeff Zaroyko <jeffzaroyko at gmail.com>
Date:   Tue Feb 26 14:02:36 2008 +1100

decode html entities when using redirect function

---

 include/util.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/util.php b/include/util.php
index 741435b..ba13386 100644
--- a/include/util.php
+++ b/include/util.php
@@ -20,7 +20,7 @@ function util_show_error_page_and_exit($text = null, $message = null)
  */
 function util_redirect_and_exit($url)
 {
-    header("Location: ".$url); 
+    header("Location: ".html_entity_decode($url)); 
     exit;
 }
 




More information about the wine-cvs mailing list