Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_trackexits
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12665
Modified Files:
serendipity_event_trackexits.php
Log Message:
Fix a bug where if the query to select links from the references table resulted in an error the first character of the error string would be inserted as the url_id instead of falling back on base64 encoding the URL. Thanks to Filip de Waard (http://www.filipdewaard.com/) for spotting.
Index: serendipity_event_trackexits.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_trackexits/serendipity_event_trackexits.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- serendipity_event_trackexits.php 14 Sep 2004 12:56:09 -0000 1.12
+++ serendipity_event_trackexits.php 24 Sep 2004 02:28:09 -0000 1.13
@@ -178,7 +178,7 @@
);
}
- if (isset($this->links[$url])) {
+ if (is_array($this->links) && isset($this->links[$url])) {
return sprintf(
'<a%shref="%sexit.php?url_id=%s%s" title="%s" onmouseover="window.status=\'%s\';return true;" onmouseout="window.status=\'\';return true;"',
$buffer[1],
|