cvs: phpweb / search.php
| From: | Wez Furlong | Date: | Fri, 23 May 2003 01:58:26 +0000 |
| Subject: | cvs: phpweb / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17925@lists.php.net to get a copy of this message | ||
wez Thu May 22 21:58:26 2003 EDT
Modified files:
/phpweb search.php
Log:
google doesn't like trailing slash on site
Index: phpweb/search.php
diff -u phpweb/search.php:1.86 phpweb/search.php:1.87
--- phpweb/search.php:1.86 Thu May 22 21:54:09 2003
+++ phpweb/search.php Thu May 22 21:58:26 2003
@@ -1,5 +1,5 @@
<?php
-/* $Id: search.php,v 1.86 2003/05/23 01:54:09 wez Exp $ */
+/* $Id: search.php,v 1.87 2003/05/23 01:58:26 wez Exp $ */
include_once "prepend.inc";
@@ -150,8 +150,10 @@
exit;
}
+ $site = substr($MYSITE, 7, strlen($MYSITE) - 8);
+
header("Location: http://www.google.com/search?q=" .
urlencode($pattern) .
- "+site:" . urlencode(substr($MYSITE, 7)) . "&l=$lang");
+ "+site:" . urlencode($site) . "&l=$lang");
exit;
// If some local search is needed and we have no support for