GNOME Bugzilla – Bug 167319
smart bookmarks should replace all instances of %s in the url
Last modified: 2005-04-24 12:39:13 UTC
When creating a smart bookmark where there are multiple occurences of the %s seach term, epiphany should replace them all and not only the first one, this happens for exemple when searching on the gentoo bugzilla: http://bugs.gentoo.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&field0-0-0=product&type0-0-0=substring&value0-0-0=%s&field0-0-1=component&type0-0-1=substring&value0-0-1=%s&field0-0-2=short_desc&type0-0-2=substring&value0-0-2=%s&field0-0-3=status_whiteboard&type0-0-3=substring&value0-0-3=%s Other information:
Created attachment 38817 [details] [review] ephy-smart.patch Here is the fix, this is my first piece of C code for a gnome project, so i don't know if it's ok, or not. I noticed that you do a return if fail thing if the replacement fails, here the t1 string will get copied at least once in the string buffer, but i don't think this is a major issue.. Now i can enjoy having a smart bookmark for all bugzillas, that require 4 occurrences of the search string, eeek !
Created attachment 38818 [details] [review] ephy-smart.patch And now with correct indentation, and in the cvs root
Fixed in cvs HEAD, thanks for the patch!