summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-06 17:58:47 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-06 17:58:47 +0200
commite2381ea22cfd3fc1ab6b6c8e472740005ad02f87 (patch)
tree1d726d81da2db6b3a063adaa4ef8e0b9e67f242a /db
parent050d866f546f380ad986b6da26e6871a59d17a2b (diff)
typo fix
Diffstat (limited to 'db')
-rw-r--r--db/feedmapper.php12
-rw-r--r--db/itemmapper.php10
2 files changed, 11 insertions, 11 deletions
diff --git a/db/feedmapper.php b/db/feedmapper.php
index ba4b9a5c8..9e371f1f0 100644
--- a/db/feedmapper.php
+++ b/db/feedmapper.php
@@ -45,8 +45,8 @@ class FeedMapper extends Mapper implements IMapper {
'ON `feeds`.`id` = `items`.`feed_id` ' .
// WARNING: this is a desperate attempt at making this query work
// because prepared statements dont work. This is a possible
- // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGH.
- // think twice when chaning this
+ // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGHT.
+ // think twice when changing this
'AND (`items`.`status` & ' . StatusFlag::UNREAD . ') = ' .
StatusFlag::UNREAD . ' ' .
'WHERE `feeds`.`id` = ? ' .
@@ -83,8 +83,8 @@ class FeedMapper extends Mapper implements IMapper {
'ON `feeds`.`id` = `items`.`feed_id` ' .
// WARNING: this is a desperate attempt at making this query work
// because prepared statements dont work. This is a possible
- // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGH.
- // think twice when chaning this
+ // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGHT.
+ // think twice when changing this
'AND (`items`.`status` & ' . StatusFlag::UNREAD . ') = ' .
StatusFlag::UNREAD . ' ' .
'WHERE `feeds`.`user_id` = ? ' .
@@ -109,8 +109,8 @@ class FeedMapper extends Mapper implements IMapper {
'ON `feeds`.`id` = `items`.`feed_id` ' .
// WARNING: this is a desperate attempt at making this query work
// because prepared statements dont work. This is a possible
- // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGH.
- // think twice when chaning this
+ // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGHT.
+ // think twice when changing this
'AND (`items`.`status` & ' . StatusFlag::UNREAD . ') = ' .
StatusFlag::UNREAD . ' ' .
'WHERE `feeds`.`url_hash` = ? ' .
diff --git a/db/itemmapper.php b/db/itemmapper.php
index e2850e725..2ba0a7f2c 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -72,11 +72,11 @@ class ItemMapper extends Mapper implements IMapper {
// now im gonna slowly stick them in the query, be careful!
return $this->makeSelectQuery(
-
+
// WARNING: this is a desperate attempt at making this query work
// because prepared statements dont work. This is a possible
- // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGH.
- // think twice when chaning this
+ // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGHT.
+ // think twice when changing this
'AND ((`items`.`status` & ' . $status . ') = ' . $status . ') ' .
$prependTo
);
@@ -101,8 +101,8 @@ class ItemMapper extends Mapper implements IMapper {
'AND `feeds`.`user_id` = ? ' .
// WARNING: this is a desperate attempt at making this query work
// because prepared statements dont work. This is a possible
- // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGH.
- // think twice when chaning this
+ // SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGHT.
+ // think twice when changing this
'WHERE ((`items`.`status` & ' . StatusFlag::STARRED . ') = ' .
StatusFlag::STARRED . ')';