projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5960757
)
Fix for double-add of URL
author
Roland Häder
<roland@mxchange.org>
Wed, 18 Nov 2009 11:31:54 +0000
(11:31 +0000)
committer
Roland Häder
<roland@mxchange.org>
Wed, 18 Nov 2009 11:31:54 +0000
(11:31 +0000)
inc/functions.php
patch
|
blob
|
history
diff --git
a/inc/functions.php
b/inc/functions.php
index ef7e6388360f6dbb690db2549cdeea547a3b988e..5557b88024ad1605fc245b8157f3d51856d2f639 100644
(file)
--- a/
inc/functions.php
+++ b/
inc/functions.php
@@
-3855,8
+3855,11
@@
function encodeUrl ($url, $outputMode = '0') {
} // END - if
} // END - if
- // Add {?URL?}
- $url = '{?URL?}/' . $url;
+ // Add {?URL?} ?
+ if ((substr($url, 0, strlen(getConfig('URL'))) != getConfig('URL')) && (substr($url, 0, 7) == '{?URL?}')) {
+ // Add it
+ $url = '{?URL?}/' . $url;
+ } // END - if
// Return the URL
return $url;