[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc/class.validator.inc.php, 1.2.4.11
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc/class.validator.inc.php, 1.2.4.11 |
Date: |
Sat, 6 Nov 2004 16:34:26 +0100 |
Update of /phpgwapi/inc
Modified Files:
Branch: Version-0_9_16-branch
class.validator.inc.php
date: 2004/11/06 15:34:26; author: powerstat; state: Exp; lines: +12 -12
Log Message:
Bugfixes HTML; makes it a bit more W3C conform;
see patch #3503
=====================================================================
Index: phpgwapi/inc/class.validator.inc.php
diff -u phpgwapi/inc/class.validator.inc.php:1.2.4.10
phpgwapi/inc/class.validator.inc.php:1.2.4.11
--- phpgwapi/inc/class.validator.inc.php:1.2.4.10 Tue Mar 2 22:25:04 2004
+++ phpgwapi/inc/class.validator.inc.php Sat Nov 6 15:34:26 2004
@@ -126,7 +126,7 @@
function is_url ($url='')
{
- //echo "Checking $url<br>";
+ //echo "Checking $url<br />";
$uris = array(
'ftp' => True,
'https' => True,
@@ -146,21 +146,21 @@
//echo 'Scheme ' . $url_elements['scheme'];
if(@$uris[$url_elements['scheme']])
{
- //echo ' is valid<br>host ' .
$url_elements['host'];
+ //echo ' is valid<br />host ' .
$url_elements['host'];
if( eregi("[a-z]", $url_elements['host']) )
{
- //echo ' is name<br>';
+ //echo ' is name<br />';
return
$this->is_hostname($url_elements['host']);
}
else
{
- //echo ' is ip<br>';
+ //echo ' is ip<br />';
return
$this->is_ipaddress($url_elements['host']);
}
}
else
{
- //echo ' is invalid<br>';
+ //echo ' is invalid<br />';
return $false;
}
@@ -193,13 +193,13 @@
function is_hostname ($hostname='')
{
- //echo "Checking $hostname<br>";
+ //echo "Checking $hostname<br />";
$segs = explode('.', $hostname);
if(is_array($segs))
{
foreach($segs as $seg)
{
- //echo "Checking $seg<br>";
+ //echo "Checking $seg<br />";
if(eregi("[a-z0-9\-]{0,62}",$seg))
{
$return = True;
@@ -293,16 +293,16 @@
{
echo 'class.validator.inc.php used to contain code that
was not Free ';
echo 'Software (<a
href="(http://www.gnu.org/philosophy/free-sw.html">see ';
- echo 'definition</a> , therefore it has been removed.
<br><br>';
+ echo 'definition</a> , therefore it has been removed.
<br /><br />';
echo 'If you are a application maintainer, please
update your app. ';
echo 'If you are a user, please file a bug report on ';
echo '<a
href="https://savannah.gnu.org/bugs/?group=phpgroupware">';
echo 'our project page at savannah.gnu.org</a>. Please
copy and paste ';
- echo 'the following information into the bug
report:<br>';
+ echo 'the following information into the bug report:<br
/>';
echo '<b>Summary<b>: ' .
$GLOBALS['phpgw_info']['flags']['currentapp'];
echo 'calls class.validator.inc.php';
- echo 'Information:<br> The call was found when calling:
' . $_SERVER['QUERY_STRING'];
- echo '<br><br>This application will now halt!<br><br>';
+ echo 'Information:<br /> The call was found when
calling: ' . $_SERVER['QUERY_STRING'];
+ echo '<br /><br />This application will now halt!<br
/><br />';
echo '<a href="'. $GLOBALS['phpgw']->link('/home.php')
.'">Return to Home Screen</a>';
exit;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc/class.validator.inc.php, 1.2.4.11,
nomail <=