summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Norman2005-12-20 20:22:15 (GMT)
committer David Norman2005-12-20 20:22:15 (GMT)
commitcdadd31fdc4de05b29aa2d279d98715d241bfa4d (patch)
tree119725c2725cde4b4a0e839d496dae30613c6106
parentde6eabab07b405614e2fe9a8f482d4329db236a4 (diff)
fix bug #18716
-rw-r--r--print.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/print.module b/print.module
index 9cb8e51..ac6e281 100644
--- a/print.module
+++ b/print.module
@@ -260,7 +260,11 @@ function print_friendly_urls($url = 0) {
global $base_url;
static $urls = array();
if ($url) {
- $urls[] = strpos($url, '://') ? $url : $base_url. '/'. url($url);
+ if(strpos($url, '://') || preg_match("/^mailto:.*?@.*?\..*?$/iu", $url)) {
+ $urls[] = $url;
+ } else {
+ $base_url. '/'. url($url);
+ }
return count($urls);
}
return $urls;