[wp-cvs] wordpress/wp-content/plugins google-hilite.php,1.4,1.5
Ryan Boren
rboren at users.sourceforge.net
Mon May 31 21:18:38 CDT 2004
Update of /cvsroot/cafelog/wordpress/wp-content/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30190
Modified Files:
google-hilite.php
Log Message:
HTTP_REFERER fixes from Joseph Scott. http://wordpress.org/support/6/6657
Index: google-hilite.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-content/plugins/google-hilite.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** google-hilite.php 28 Apr 2004 07:27:02 -0000 1.4
--- google-hilite.php 1 Jun 2004 02:18:36 -0000 1.5
***************
*** 12,16 ****
function get_search_query_terms($engine = 'google') {
global $s, $s_array;
! $referer = urldecode($_SERVER[HTTP_REFERER]);
$query_array = array();
switch ($engine) {
--- 12,16 ----
function get_search_query_terms($engine = 'google') {
global $s, $s_array;
! $referer = urldecode($_SERVER['HTTP_REFERER']);
$query_array = array();
switch ($engine) {
***************
*** 59,62 ****
--- 59,65 ----
function is_referer_search_engine($engine = 'google') {
$siteurl = get_settings('home');
+ if( empty($_SERVER['HTTP_REFERER']) ) {
+ return 0;
+ }
$referer = urldecode($_SERVER['HTTP_REFERER']);
//echo "referer is: $referer<br />";
***************
*** 132,134 ****
add_action('wp_head', 'hilite_head');
! ?>
\ No newline at end of file
--- 135,137 ----
add_action('wp_head', 'hilite_head');
! ?>
More information about the cvs
mailing list