aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/myFunctions.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-02-18 02:19:48 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-02-18 02:19:48 +0000
commita855ea347f8668cefb04360b2d7158d8939e07ac (patch)
tree0f20e42e542647f7151d9f78b3911a8edf2861b7 /h-source/Application/Include/myFunctions.php
parent0f42e1a7816893e083f49c933d1393a102a3510e (diff)
improved wiki
Diffstat (limited to 'h-source/Application/Include/myFunctions.php')
-rw-r--r--h-source/Application/Include/myFunctions.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php
index 6b87958..d0d51bf 100644
--- a/h-source/Application/Include/myFunctions.php
+++ b/h-source/Application/Include/myFunctions.php
@@ -30,8 +30,7 @@ function encodeUrl($url)
$url = str_replace(')','-',$url);
$url = str_replace('/','-',$url);
$url = str_replace('@','-at-',$url);
- $url = str_replace('#','-at-',$url);
- $url = str_replace('?','-at-',$url);
+ $url = str_replace('?','-',$url);
// $temp = null;
// for ($i=0;$i<strlen($url); $i++)
@@ -51,6 +50,11 @@ function encodeUrl($url)
return $url;
}
+function titleForRedirect($title)
+{
+ return html_entity_decode(encodeUrl($title),ENT_QUOTES,DEFAULT_CHARSET);
+}
+
// function encodeUrl($url)
// {
// $url = str_replace(' ','-',$url);