cvs: phpweb / submit-event.php

From: Date: Sun, 11 Feb 2007 14:23:02 +0000
Subject: cvs: phpweb / submit-event.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-34228@lists.php.net to get a copy of this message
bjori Sun Feb 11 14:23:02 2007 UTC Modified files: /phpweb submit-event.php Log: Get rid of empty(trim()) Fix vim modeline to expand-tabs-to-spaces http://cvs.php.net/viewvc.cgi/phpweb/submit-event.php?r1=1.33&r2=1.34&diff_format=u Index: phpweb/submit-event.php diff -u phpweb/submit-event.php:1.33 phpweb/submit-event.php:1.34 --- phpweb/submit-event.php:1.33 Sun Feb 11 10:04:49 2007 +++ phpweb/submit-event.php Sun Feb 11 14:23:02 2007 @@ -1,5 +1,5 @@ <?php -// $Id: submit-event.php,v 1.33 2007/02/11 10:04:49 didou Exp $ +// $Id: submit-event.php,v 1.34 2007/02/11 14:23:02 bjori Exp $ $_SERVER['BASE_PAGE'] = 'submit-event.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc'; @@ -59,10 +59,11 @@ $pu = parse_url($_POST['url']); $_POST['url'] = trim($_POST['url']); + $pu['host'] = trim($pu['host']); if (!$_POST['url']) { $errors[] = "You must supply a URL with more information about the event."; } - elseif (!in_array($pu['scheme'], $valid_schemes) || empty(trim($pu['host']))) { + elseif (!in_array($pu['scheme'], $valid_schemes) || empty($pu['host'])) { $errors[] = "The URL you supplied was invalid."; } @@ -253,5 +254,5 @@ } } -/* vim: set noet ts=4 sw=4 ft=php: : */ +/* vim: set et ts=4 sw=4 ft=php: : */ ?>

« previous php.mirrors (#34228) next »