cvs: php4 /ext/standard url_scanner.c
| From: | Hartmut Holzgraefe | Date: | Fri, 04 Aug 2000 09:03:20 +0000 |
| Subject: | cvs: php4 /ext/standard url_scanner.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1023@lists.php.net to get a copy of this message | ||
hholzgra Fri Aug 4 02:03:20 2000 EDT
Modified files:
/php4/ext/standard url_scanner.c
Log:
do not rewrite absolute urls
(should be more clever and identify itself though)
Index: php4/ext/standard/url_scanner.c
diff -u php4/ext/standard/url_scanner.c:1.21 php4/ext/standard/url_scanner.c:1.22
--- php4/ext/standard/url_scanner.c:1.21 Thu Aug 3 04:42:39 2000
+++ php4/ext/standard/url_scanner.c Fri Aug 4 02:03:20 2000
@@ -16,7 +16,7 @@
| Hartmut Holzgraefe <hartmut@six.de> |
+----------------------------------------------------------------------+
*/
-/* $Id: url_scanner.c,v 1.21 2000/08/03 11:42:39 hholzgra Exp $ */
+/* $Id: url_scanner.c,v 1.22 2000/08/04 09:03:20 hholzgra Exp $ */
#include "php.h"
@@ -57,8 +57,8 @@
} else if(!strcasecmp(tag,"img" ) && !strcasecmp(attr,"action" )) {
flag = 1;
}
- if(flag) {
- if(!strstr(val,buf))
+ if(flag) {
+ if(!strstr(val,buf)&&!strchr(val,':'))
{
char *result = (char *)emalloc(strlen(buf)+strlen(PG(arg_separator))+1);
int n;