yelp r3166 - branches/webkit/src
- From: atoker svn gnome org
- To: svn-commits-list gnome org
- Subject: yelp r3166 - branches/webkit/src
- Date: Sat, 2 Aug 2008 11:52:00 +0000 (UTC)
Author: atoker
Date: Sat Aug 2 11:52:00 2008
New Revision: 3166
URL: http://svn.gnome.org/viewvc/yelp?rev=3166&view=rev
Log:
Fix loading of info pages containing '?' in title
RFC 3986 states that '#' and '?' are reserved, ie. not permitted in
generic syntax, so it's more correct to search forward than backward.
This issue always existed but is hit more often now that we use the
query part in Yelp.
Modified:
branches/webkit/src/yelp-utils.c
Modified: branches/webkit/src/yelp-utils.c
==============================================================================
--- branches/webkit/src/yelp-utils.c (original)
+++ branches/webkit/src/yelp-utils.c Sat Aug 2 11:52:00 2008
@@ -113,9 +113,9 @@
gchar *sect_delimit;
gchar *sect;
- sect_delimit = strrchr (uri, '#');
+ sect_delimit = strchr (uri, '#');
if (!sect_delimit) {
- sect_delimit = strrchr (uri, '?');
+ sect_delimit = strchr (uri, '?');
}
if (!sect_delimit) {
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]