[pLog-svn] r688 - plog/trunk
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Sat Jan 8 13:30:40 GMT 2005
Author: oscar
Date: 2005-01-08 13:30:39 +0000 (Sat, 08 Jan 2005)
New Revision: 688
Modified:
plog/trunk/wizard.php
Log:
added a lot of Db::qstr() missing, according to the bug report here: http://www.plogworld.net/forums/viewtopic.php?t=1538
Modified: plog/trunk/wizard.php
===================================================================
--- plog/trunk/wizard.php 2005-01-06 07:19:34 UTC (rev 687)
+++ plog/trunk/wizard.php 2005-01-08 13:30:39 UTC (rev 688)
@@ -1564,8 +1564,8 @@
while( $row = $result->FetchRow()) {
$commentId = $row["id"];
- $normText = $this->t->normalizeText( $row["text"] );
- $normTopic = $this->t->normalizeText( $row["topic"] );
+ $normText = Db::qstr($this->t->normalizeText( $row["text"] ));
+ $normTopic = Db::qstr($this->t->normalizeText( $row["topic"] ));
$query = "UPDATE {$dbPrefix}articles_comments
SET normalized_text = '$normText', normalized_topic = '$normTopic', date = date
WHERE id = $commentId";
@@ -1622,9 +1622,9 @@
while( $row = $result->FetchRow()) {
$albumId = $row["id"];
- $mangledName = $this->t->urlize( $row["name"] );
- $normName = $this->t->normalizeText( $row["name"] );
- $normDescription = $this->t->normalizeText( $row["description"] );
+ $mangledName = Db::qstr($this->t->urlize( $row["name"] ));
+ $normName = Db::qstr($this->t->normalizeText( $row["name"] ));
+ $normDescription = Db::qstr($this->t->normalizeText( $row["description"] ));
$query = "UPDATE {$dbPrefix}gallery_albums
SET mangled_name = '$mangledName', normalized_name = '$normName',
normalized_description = '$normDescription', date = date
@@ -1655,7 +1655,7 @@
while( $row = $result->FetchRow()) {
$resId = $row["id"];
//$normName = $this->t->normalizeText( $row["name"] );
- $normDescription = $this->t->normalizeText( $row["description"] );
+ $normDescription = Db::qstr($this->t->normalizeText( $row["description"] ));
$query = "UPDATE {$dbPrefix}gallery_resources
SET normalized_description = '$normDescription', date = date
WHERE id = $resId";
More information about the pLog-svn
mailing list