fresh 1.5.15 install-mod_search preventing html validation - Joomla! Forum - community, help and support
hi
i made fresh install scratch new site a,d noticed install wasnt able validate html...
i found out if unpublish search module, validates...
and if replace searc module comes 1.5.15 older 1 (1.5.14 suppose, comes abackup of site) : validate thml..
so here 2 version of mod-search (validationg , not validatig)
if can fix it...
validating :
<?php
/**
* @version $id: mod_search.php 10855 2008-08-29 22:47:34z willebil $
* @package joomla
* @copyright copyright (c) 2005 - 2008 open source matters. rights reserved.
* @license gnu/gpl, see license.php
* joomla! free software. version may have been modified pursuant
* gnu general public license, , distributed includes or
* derivative of works licensed under gnu general public license or
* other free or open source software licenses.
* see copyright.php copyright notices , details.
*/
// no direct access
defined('_jexec') or die('restricted access');
// include syndicate functions once
require_once( dirname(__file__).ds.'helper.php' );
$button = $params->get('button', '');
$imagebutton = $params->get('imagebutton', '');
$button_pos = $params->get('button_pos', 'left');
$button_text = $params->get('button_text', jtext::_('search'));
$width = intval($params->get('width', 20));
$maxlength = $width > 20 ? $width : 20;
$text = $params->get('text', jtext::_('search...'));
$set_itemid = intval($params->get('set_itemid', 0));
$moduleclass_sfx = $params->get('moduleclass_sfx', '');
if ($imagebutton) {
$img = modsearchhelper::getsearchimage( $button_text );
}
require(jmodulehelper::getlayoutpath('mod_search') );
not validating :
<?php
/**
* @version $id: mod_search.php 13338 2009-10-27 02:15:55z ian $
* @package joomla
* @copyright copyright (c) 2005 - 2008 open source matters. rights reserved.
* @license gnu/gpl, see license.php
* joomla! free software. version may have been modified pursuant
* gnu general public license, , distributed includes or
* derivative of works licensed under gnu general public license or
* other free or open source software licenses.
* see copyright.php copyright notices , details.
*/
// no direct access
defined('_jexec') or die('restricted access');
// include syndicate functions once
require_once( dirname(__file__).ds.'helper.php' );
$button = $params->get('button', '');
$imagebutton = $params->get('imagebutton', '');
$button_pos = $params->get('button_pos', 'left');
$button_text = $params->get('button_text', jtext::_('search'));
$width = intval($params->get('width', 20));
$maxlength = $width > 20 ? $width : 20;
$text = $params->get('text', jtext::_('search...'));
$set_itemid = intval($params->get('set_itemid', 0));
$moduleclass_sfx = $params->get('moduleclass_sfx', '');
if ($imagebutton) {
$img = modsearchhelper::getsearchimage( $button_text );
}
$mitemid = $set_itemid > 0 ? $set_itemid : jrequest::getint('itemid');
require(jmodulehelper::getlayoutpath('mod_search') );
**************
message validator du w3c : attribute value specification must attribute value literal unless shorttag yes specified
<input type="hidden" name="itemid" value=1 />
)
i made fresh install scratch new site a,d noticed install wasnt able validate html...
i found out if unpublish search module, validates...
and if replace searc module comes 1.5.15 older 1 (1.5.14 suppose, comes abackup of site) : validate thml..
so here 2 version of mod-search (validationg , not validatig)
if can fix it...
validating :
<?php
/**
* @version $id: mod_search.php 10855 2008-08-29 22:47:34z willebil $
* @package joomla
* @copyright copyright (c) 2005 - 2008 open source matters. rights reserved.
* @license gnu/gpl, see license.php
* joomla! free software. version may have been modified pursuant
* gnu general public license, , distributed includes or
* derivative of works licensed under gnu general public license or
* other free or open source software licenses.
* see copyright.php copyright notices , details.
*/
// no direct access
defined('_jexec') or die('restricted access');
// include syndicate functions once
require_once( dirname(__file__).ds.'helper.php' );
$button = $params->get('button', '');
$imagebutton = $params->get('imagebutton', '');
$button_pos = $params->get('button_pos', 'left');
$button_text = $params->get('button_text', jtext::_('search'));
$width = intval($params->get('width', 20));
$maxlength = $width > 20 ? $width : 20;
$text = $params->get('text', jtext::_('search...'));
$set_itemid = intval($params->get('set_itemid', 0));
$moduleclass_sfx = $params->get('moduleclass_sfx', '');
if ($imagebutton) {
$img = modsearchhelper::getsearchimage( $button_text );
}
require(jmodulehelper::getlayoutpath('mod_search') );
not validating :
<?php
/**
* @version $id: mod_search.php 13338 2009-10-27 02:15:55z ian $
* @package joomla
* @copyright copyright (c) 2005 - 2008 open source matters. rights reserved.
* @license gnu/gpl, see license.php
* joomla! free software. version may have been modified pursuant
* gnu general public license, , distributed includes or
* derivative of works licensed under gnu general public license or
* other free or open source software licenses.
* see copyright.php copyright notices , details.
*/
// no direct access
defined('_jexec') or die('restricted access');
// include syndicate functions once
require_once( dirname(__file__).ds.'helper.php' );
$button = $params->get('button', '');
$imagebutton = $params->get('imagebutton', '');
$button_pos = $params->get('button_pos', 'left');
$button_text = $params->get('button_text', jtext::_('search'));
$width = intval($params->get('width', 20));
$maxlength = $width > 20 ? $width : 20;
$text = $params->get('text', jtext::_('search...'));
$set_itemid = intval($params->get('set_itemid', 0));
$moduleclass_sfx = $params->get('moduleclass_sfx', '');
if ($imagebutton) {
$img = modsearchhelper::getsearchimage( $button_text );
}
$mitemid = $set_itemid > 0 ? $set_itemid : jrequest::getint('itemid');
require(jmodulehelper::getlayoutpath('mod_search') );
**************
message validator du w3c : attribute value specification must attribute value literal unless shorttag yes specified
<input type="hidden" name="itemid" value=1 />
)
this confirmed bug in joomla! 1.5.15.
review following link description , solution validation error problem.
http://joomlacode.org/gf/project/joomla/tracker/?action=trackeritemedit&tracker_item_id=18619
review following link description , solution validation error problem.
http://joomlacode.org/gf/project/joomla/tracker/?action=trackeritemedit&tracker_item_id=18619
Comments
Post a Comment