=?UTF-8?Q?Alexander=20Nicolaysen=20?==?UTF-8?Q?S=C3=B8rnes=20?=: application: Add HTML entities in links instead of URLs

Alexander Nicolaysen Sørnes asornes at winehq.org
Sat Dec 28 11:28:56 CST 2013


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

Author: Alexander Nicolaysen Sørnes <alexsornes at gmail.com>
Date:   Sat Dec 28 18:28:28 2013 +0100

application: Add HTML entities in links instead of URLs

---

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

diff --git a/include/application.php b/include/application.php
index b321cf4..106fa19 100644
--- a/include/application.php
+++ b/include/application.php
@@ -973,13 +973,13 @@ class Application {
 
     public function objectMakeUrl()
     {
-        $sUrl = APPDB_ROOT."objectManager.php?sClass=application&iId=$this->iAppId";
+        $sUrl = APPDB_ROOT."objectManager.php?sClass=application&iId=$this->iAppId";
         return $sUrl;
     }
 
     public function objectMakeLink()
     {
-        $sLink = "<a href=\"".$this->objectMakeUrl()."\">".
+        $sLink = "<a href=\"".htmlentities($this->objectMakeUrl())."\">".
                  $this->sName."</a>";
         return $sLink;
     }




More information about the wine-cvs mailing list