If I am reading the report correctly, fixing this bug is going to require much 
more than a change here or there. It may be better to simply require that URLs 
to wikis contain no blanks. In any case, the quickest way for me to fix the 
problem is to change the name of the directory where I store the latest trunk 
version.

--- On Tue, 7/21/09, Brion Vibber <[email protected]> wrote:

> From: Brion Vibber <[email protected]>
> Subject: Re: [Wikitech-l] There appears to be a bug in 
> WebRequest::extractTitle()
> To: "Wikimedia developers" <[email protected]>
> Date: Tuesday, July 21, 2009, 3:05 PM
> dan nessett wrote:
> > The URL to my testwiki is:
> > 
> >
> '/MediawikiTest/Latest%20Trunk%20Version/phase3/index.php/Main_Page'
> > 
> > This is the value in $path. However, the value in
> $base is:
> > 
> > '/MediawikiTest/Latest Trunk
> Version/phase3/index.php/'
> > 
> > So, the call to substr fails and the code that sets
> 'title' in $matches never executes (which means $_GET never
> gets a 'title' entry). The solution is to either convert the
> '%20' escapes in $path to blanks or convert the blanks in
> $base to '%20' escapes. This bug could be fixed in
> extractTitle() or since $path is an argument of this method
> and $base is extracted from an argument, perhaps it should
> be fixed elsewhere.
> > 
> > If someone confirms this is a bug, I will open a bug
> report in Bugzilla.
> 
> See https://bugzilla.wikimedia.org/show_bug.cgi?id=10787
> 
> -- brion
> 
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> 


      

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to