[geeklog-hg] geeklog: Make topic ids case insensitive
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Sep 18 21:36:03 EDT 2013
changeset 9304:004a0e8a3216
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/004a0e8a3216
user: Tom <websitemaster at cogeco.net>
date: Wed Sep 18 20:57:58 2013 -0400
description:
Make topic ids case insensitive
diffstat:
public_html/index.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 3894f8c4c995 -r 004a0e8a3216 public_html/index.php
--- a/public_html/index.php Wed Sep 18 20:10:14 2013 -0400
+++ b/public_html/index.php Wed Sep 18 20:57:58 2013 -0400
@@ -93,7 +93,7 @@
$topic_check = COM_applyFilter($_POST['topic']);
}
if ($topic_check != '') {
- if ($topic_check != DB_getItem($_TABLES['topics'], 'tid', "tid = '$topic_check' " . COM_getPermSQL('AND'))) {
+ if (strtolower($topic_check) != strtolower(DB_getItem($_TABLES['topics'], 'tid', "tid = '$topic_check' " . COM_getPermSQL('AND')))) {
COM_handle404();
}
}
More information about the geeklog-cvs
mailing list