http://atutor.ca/atutor/mantis/view.php?id=4498
authorharris wong <hwong@ocad.ca>
Mon, 23 Aug 2010 16:39:28 +0000 (16:39 -0000)
committerharris wong <hwong@ocad.ca>
Mon, 23 Aug 2010 16:39:28 +0000 (16:39 -0000)
docs/mods/_core/imscc/classes/WeblinksExport.class.php
docs/mods/_core/imscc/classes/WeblinksParser.class.php

index 663606a..3db219b 100644 (file)
@@ -42,7 +42,7 @@ class WeblinksExport {
                //assign all the neccessarily values to the template.
                $savant->assign('title', htmlentities($wl->getTitle(), ENT_QUOTES, 'UTF-8'));
                $url = $wl->getUrl();
-               $savant->assign('url_href', htmlentities($url['href'], ENT_QUOTES, 'UTF-8'));
+               $savant->assign('url_href', urlencode($url['href']));
                $savant->assign('url_target', $url['target']);
                //TODO: not supported yet
                //$savant->assign('url_window_features', $url['window_features']);
index 08785bd..ae4d56c 100644 (file)
@@ -95,7 +95,7 @@ class WeblinksParser {
                return $this->title;
        }
        function getUrl(){
-               return $this->url;
+               return urldecode($this->url);
        }
 }