gnome-core/help-browser, CVS 981002, minor bugfix
- From: Kang-Jin Lee <lee tengu arco de>
- To: gnome-list gnome org
- Subject: gnome-core/help-browser, CVS 981002, minor bugfix
- Date: Fri, 2 Oct 1998 19:37:15 +0200
Hi,
gnome-core/help-broswer, CVS 981002 doesn't do URL canonicalization.
If you click a reference from "http://localhost" to "./", the help-browser
shows "http://localhost/./" or "http://localhost/./././" if you click it
multiple times instead of "http://localhost".
Patch follows:
--------------------------------
--- gnome-core/help-browser/docobj.c-dist Tue Mar 17 00:12:17 1998
+++ gnome-core/help-browser/docobj.c Fri Oct 2 19:33:02 1998
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <glib.h>
+#include "HTParse.h"
#include "docobj.h"
#include "parseUrl.h"
#include "transport.h"
@@ -98,6 +99,8 @@
decomp = decomposeUrl(obj->ref);
obj->absoluteRef = g_strdup(obj->ref);
}
+
+ obj->absoluteRef = HTSimplify(&(obj->absoluteRef));
g_message("decomposed to: %s, %s, %s, %s", decomp->access,
decomp->host, decomp->path, decomp->anchor);
--------------------------------
--
Kang-Jin Lee
lee@arco.met.fu-berlin.de
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]