projects
/
infodrom.org
/
www.zeitungsliste.de
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1efc566
)
Check for domain and TLD in url checker
author
Joey Schulze
<joey@infodrom.org>
Fri, 27 Jun 2008 13:34:36 +0000
(13:34 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 27 Jun 2008 13:34:36 +0000
(13:34 +0000)
lib/functions.inc
patch
|
blob
|
history
diff --git
a/lib/functions.inc
b/lib/functions.inc
index
c007edf
..
f887333
100644
(file)
--- a/
lib/functions.inc
+++ b/
lib/functions.inc
@@
-409,6
+409,9
@@
function fix_url($url) {
}
function is_valid_url($url) {
+ if (strpos($url, '.') === false)
+ return false;
+
$parts = parse_url($url);
if (empty($parts['host']) || empty($parts['scheme']) || empty($parts['path']))