[geeklog-cvs] geeklog-1.3/system/classes search.class.php,1.17,1.18
blaine at geeklog.net
blaine at geeklog.net
Thu Jan 1 15:31:43 EST 2004
Update of /usr/cvs/geeklog/geeklog-1.3/system/classes
In directory geeklog_prod:/tmp/cvs-serv15000/system/classes
Modified Files:
search.class.php
Log Message:
Fixed bug where link was incorrect if resulting story had a slash in it as in 9 1/2 weeks. Added use of urlencode() when creating the link.
Index: search.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/search.class.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** search.class.php 1 Jan 2004 19:50:46 -0000 1.17
--- search.class.php 1 Jan 2004 20:31:41 -0000 1.18
***************
*** 299,303 ****
$articleUrl = '/article.php?story=' . $A['sid'];
if (!empty ($urlQuery)) {
! $articleUrl .= '&query=' . $urlQuery;
}
$row = array('<a href="' .$_CONF['site_url'] . $articleUrl . '">' . stripslashes($A['title']) . DB_getItem($_TABLES['users'],'username',"uid = '{$A['uid']}'"), $A['hits']);
--- 299,303 ----
$articleUrl = '/article.php?story=' . $A['sid'];
if (!empty ($urlQuery)) {
! $articleUrl .= '&query=' . urlencode($urlQuery);
}
$row = array('<a href="' .$_CONF['site_url'] . $articleUrl . '">' . stripslashes($A['title']) . DB_getItem($_TABLES['users'],'username',"uid = '{$A['uid']}'"), $A['hits']);
More information about the geeklog-cvs
mailing list