Revision history for Mod028bCategoryActionDoubleQuoteReliance


Revision [23263]

Last edited on 2016-05-20 07:38:47 by JavaWoman [Replaces old-style internal links with new pipe-split links.]
Additions:
**[[JsnX | Jason Tourtelotte]]**
else $str .= '<li>'.$this->Format('[['.$val.' | '.preg_replace( "/Category/", "",$val).']]').'</li>';
Deletions:
**[[JsnX Jason Tourtelotte]]**
else $str .= '<li>'.$this->Format('[['.$val.' '.preg_replace( "/Category/", "",$val).']]').'</li>';


Revision [19283]

Edited on 2008-01-28 00:14:45 by JavaWoman [Modified links pointing to docs server]

No Differences

Revision [17203]

Edited on 2007-07-07 14:07:30 by JavaWoman [credit link]
Additions:
==== Wikka Mod 028 ====
Type: Bug Fix
----
===Credit:===
**[[JsnX Jason Tourtelotte]]**
----

Found out that the Category action relied on the double doublequote insecurity for html formatting.

Fixed with the code below.

**actions/category.php**

%%(php)

<?php
if ($cattag = $_REQUEST["wakka"])
{
$str ="";
if (!$col) { $col=1;}
if ($page=="/") {
$page="Category Category"; // Remove the space between the two category words.
} else
{
$page=$this->getPageTag();
}
// $page= preg_replace( "/(\w+)\s(\w+)/", "$1$2",$page);
if ($class) {$class="class=\"$class\"";}
if (!$page) {$page=$cattag;}

if ($results = $this->FullCategoryTextSearch($page))
{
if (!$compact) $str .= 'The following '.(count($results)-1).' pages belong to ' . $page . ': <br /><br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0; $list = array();
foreach ($results as $i => $cpage) if($cpage['tag'] != $page) { array_push($list,$cpage['tag']);}
sort($list);
while (list($key, $val) = each($list)) {
if ($count == $col & !$compact) { $str .= "</tr><tr>"; $count=0; }
if (!$compact) $str .= '<td>'.$this->Format('[['.$val.']]').'</td>';
else $str .= '<li>'.$this->Format('[['.$val.' '.preg_replace( "/Category/", "",$val).']]').'</li>';
$count++;
}
if (!$compact) $str .= '</tr></table>'; else $str .= '</ul></div>';
}
else $str .= 'Sorry, no Items found for ' . $page .'.';
print($str);
}
?>
Deletions:
==== Wikka Mod 028 ====
Type: Bug Fix
----
===Credit:===
Jason Tourtelotte
----

Found out that the Category action relied on the double doublequote insecurity for html formatting.

Fixed with the code below.

**actions/category.php**

%%(php)

<?php
if ($cattag = $_REQUEST["wakka"])
{
$str ="";
if (!$col) { $col=1;}
if ($page=="/") {
$page="Category Category"; // Remove the space between the two category words.
} else
{
$page=$this->getPageTag();
}
// $page= preg_replace( "/(\w+)\s(\w+)/", "$1$2",$page);
if ($class) {$class="class=\"$class\"";}
if (!$page) {$page=$cattag;}

if ($results = $this->FullCategoryTextSearch($page))
{
if (!$compact) $str .= 'The following '.(count($results)-1).' pages belong to ' . $page . ': <br /><br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0; $list = array();
foreach ($results as $i => $cpage) if($cpage['tag'] != $page) { array_push($list,$cpage['tag']);}
sort($list);
while (list($key, $val) = each($list)) {
if ($count == $col & !$compact) { $str .= "</tr><tr>"; $count=0; }
if (!$compact) $str .= '<td>'.$this->Format('[['.$val.']]').'</td>';
else $str .= '<li>'.$this->Format('[['.$val.' '.preg_replace( "/Category/", "",$val).']]').'</li>';
$count++;
}
if (!$compact) $str .= '</tr></table>'; else $str .= '</ul></div>';
}
else $str .= 'Sorry, no Items found for ' . $page .'.';
print($str);
}
?>



Revision [16956]

Edited on 2007-05-31 23:27:31 by JavaWoman [Reverted]
Additions:
==== Wikka Mod 028 ====
Type: Bug Fix
----
===Credit:===
Jason Tourtelotte
----

Found out that the Category action relied on the double doublequote insecurity for html formatting.

Fixed with the code below.

**actions/category.php**

%%(php)

<?php
if ($cattag = $_REQUEST["wakka"])
{
$str ="";
if (!$col) { $col=1;}
if ($page=="/") {
$page="Category Category"; // Remove the space between the two category words.
} else
{
$page=$this->getPageTag();
}
// $page= preg_replace( "/(\w+)\s(\w+)/", "$1$2",$page);
if ($class) {$class="class=\"$class\"";}
if (!$page) {$page=$cattag;}

if ($results = $this->FullCategoryTextSearch($page))
{
if (!$compact) $str .= 'The following '.(count($results)-1).' pages belong to ' . $page . ': <br /><br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0; $list = array();
foreach ($results as $i => $cpage) if($cpage['tag'] != $page) { array_push($list,$cpage['tag']);}
sort($list);
while (list($key, $val) = each($list)) {
if ($count == $col & !$compact) { $str .= "</tr><tr>"; $count=0; }
if (!$compact) $str .= '<td>'.$this->Format('[['.$val.']]').'</td>';
else $str .= '<li>'.$this->Format('[['.$val.' '.preg_replace( "/Category/", "",$val).']]').'</li>';
$count++;
}
if (!$compact) $str .= '</tr></table>'; else $str .= '</ul></div>';
}
else $str .= 'Sorry, no Items found for ' . $page .'.';
print($str);
}
?>

%%
Deletions:
==== Wikka Mod 028 ====
Type: Bug Fix
----
===Credit:===
Jason Tourtelotte
----

Found out that the Category action relied on the double doublequote insecurity for html formatting.

Fixed with the code below.

**actions/category.php**

%%(php)

<?php
if ($cattag = $_REQUEST["wakka"])
{
$str ="";
if (!$col) { $col=1;}
if ($page=="/") {
$page="Category Category"; // Remove the space between the two category words.
} else
{
$page=$this->getPageTag();
}
// $page= preg_replace( "/(\w )\s(\w )/", "$1$2",$page);
if ($class) {$class="class=\"$class\"";}
if (!$page) {$page=$cattag;}

if ($results = $this->FullCategoryTextSearch($page))
{
if (!$compact) $str .= 'The following '.(count($results)-1).' pages belong to ' . $page . ': <br /><br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0; $list = array();
foreach ($results as $i => $cpage) if($cpage['tag'] != $page) { array_push($list,$cpage['tag']);}
sort($list);
while (list($key, $val) = each($list)) {
if ($count == $col


Revision [16755]

Edited on 2007-05-31 10:44:33 by MevDl6 [Reverted]
Additions:
==== Wikka Mod 028 ====
Type: Bug Fix
----
===Credit:===
Jason Tourtelotte
----

Found out that the Category action relied on the double doublequote insecurity for html formatting.

Fixed with the code below.

**actions/category.php**

%%(php)

<?php
if ($cattag = $_REQUEST["wakka"])
{
$str ="";
if (!$col) { $col=1;}
if ($page=="/") {
$page="Category Category"; // Remove the space between the two category words.
} else
{
$page=$this->getPageTag();
}
// $page= preg_replace( "/(\w )\s(\w )/", "$1$2",$page);
if ($class) {$class="class=\"$class\"";}
if (!$page) {$page=$cattag;}

if ($results = $this->FullCategoryTextSearch($page))
{
if (!$compact) $str .= 'The following '.(count($results)-1).' pages belong to ' . $page . ': <br /><br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0; $list = array();
foreach ($results as $i => $cpage) if($cpage['tag'] != $page) { array_push($list,$cpage['tag']);}
sort($list);
while (list($key, $val) = each($list)) {
if ($count == $col
Deletions:
==== Wikka Mod 028 ====
Type: Bug Fix
----
===Credit:===
Jason Tourtelotte
----

Found out that the Category action relied on the double doublequote insecurity for html formatting.

Fixed with the code below.

**actions/category.php**

%%(php)

<?php
if ($cattag = $_REQUEST["wakka"])
{
$str ="";
if (!$col) { $col=1;}
if ($page=="/") {
$page="Category Category"; // Remove the space between the two category words.
} else
{
$page=$this->getPageTag();
}
// $page= preg_replace( "/(\w+)\s(\w+)/", "$1$2",$page);
if ($class) {$class="class=\"$class\"";}
if (!$page) {$page=$cattag;}

if ($results = $this->FullCategoryTextSearch($page))
{
if (!$compact) $str .= 'The following '.(count($results)-1).' pages belong to ' . $page . ': <br /><br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0; $list = array();
foreach ($results as $i => $cpage) if($cpage['tag'] != $page) { array_push($list,$cpage['tag']);}
sort($list);
while (list($key, $val) = each($list)) {
if ($count == $col & !$compact) { $str .= "</tr><tr>"; $count=0; }
if (!$compact) $str .= '<td>'.$this->Format('[['.$val.']]').'</td>';
else $str .= '<li>'.$this->Format('[['.$val.' '.preg_replace( "/Category/", "",$val).']]').'</li>';
$count++;
}
if (!$compact) $str .= '</tr></table>'; else $str .= '</ul></div>';
}
else $str .= 'Sorry, no Items found for ' . $page .'.';
print($str);
}
?>

%%


Revision [1760]

Edited on 2004-10-08 19:36:10 by JavaWoman [double backslash in code caused PHP warnings; corrected to double slash]
Additions:
==== Wikka Mod 028 ====
Type: Bug Fix
----
===Credit:===
Jason Tourtelotte
----

Found out that the Category action relied on the double doublequote insecurity for html formatting.

Fixed with the code below.

**actions/category.php**

%%(php)

<?php
if ($cattag = $_REQUEST["wakka"])
{
$str ="";
if (!$col) { $col=1;}
if ($page=="/") {
$page="Category Category"; // Remove the space between the two category words.
} else
{
$page=$this->getPageTag();
}
// $page= preg_replace( "/(\w+)\s(\w+)/", "$1$2",$page);
if ($class) {$class="class=\"$class\"";}
if (!$page) {$page=$cattag;}

if ($results = $this->FullCategoryTextSearch($page))
{
if (!$compact) $str .= 'The following '.(count($results)-1).' pages belong to ' . $page . ': <br /><br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0; $list = array();
foreach ($results as $i => $cpage) if($cpage['tag'] != $page) { array_push($list,$cpage['tag']);}
sort($list);
while (list($key, $val) = each($list)) {
if ($count == $col & !$compact) { $str .= "</tr><tr>"; $count=0; }
if (!$compact) $str .= '<td>'.$this->Format('[['.$val.']]').'</td>';
else $str .= '<li>'.$this->Format('[['.$val.' '.preg_replace( "/Category/", "",$val).']]').'</li>';
$count++;
}
if (!$compact) $str .= '</tr></table>'; else $str .= '</ul></div>';
}
else $str .= 'Sorry, no Items found for ' . $page .'.';
print($str);
}
?>

Deletions:
==== Wikka Mod 028 ====
Type: Bug Fix
----
===Credit:===
Jason Tourtelotte
----

Found out that the Category action relied on the double doublequote insecurity for html formatting.

Fixed with the code below.

**actions/category.php**

%%(php)

<?php
if ($cattag = $_REQUEST["wakka"])
{
$str ="";
if (!$col) { $col=1;}
if ($page=="/") {
$page="Category Category"; \\ Remove the space between the two category words.
} else
{
$page=$this->getPageTag();
}
// $page= preg_replace( "/(\w+)\s(\w+)/", "$1$2",$page);
if ($class) {$class="class=\"$class\"";}
if (!$page) {$page=$cattag;}

if ($results = $this->FullCategoryTextSearch($page))
{
if (!$compact) $str .= 'The following '.(count($results)-1).' pages belong to ' . $page . ': <br /><br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0; $list = array();
foreach ($results as $i => $cpage) if($cpage['tag'] != $page) { array_push($list,$cpage['tag']);}
sort($list);
while (list($key, $val) = each($list)) {
if ($count == $col & !$compact) { $str .= "</tr><tr>"; $count=0; }
if (!$compact) $str .= '<td>'.$this->Format('[['.$val.']]').'</td>';
else $str .= '<li>'.$this->Format('[['.$val.' '.preg_replace( "/Category/", "",$val).']]').'</li>';
$count++;
}
if (!$compact) $str .= '</tr></table>'; else $str .= '</ul></div>';
}
else $str .= 'Sorry, no Items found for ' . $page .'.';
print($str);
}
?>


Revision [144]

Edited on 2004-04-10 20:18:10 by me-augustacuda1cable7a-138.agstme.adelphia.net [double backslash in code caused PHP warnings; corrected to double slash]
Additions:
$page="Category Category"; \\ Remove the space between the two category words.
Deletions:
$page="CategoryCategory";


Revision [137]

The oldest known version of this page was created on 2004-04-09 01:00:41 by JsnX [double backslash in code caused PHP warnings; corrected to double slash]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki