WebGUI
      Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.


     Report a Bug > WebGUI Bug Tracker

ExtrasUrl in conf http:// stripping / from URL

User xtopher
Date 12/3/2007 11:27 am
Severity Cosmetic (misspelling, formatting problems)
Version WebGUI 7.4.14
Views 75
Rating 4    Rate [
|
]
Karma Rank 0.000000
Previous · Next
User Message
xtopher

We wanted to make our user's experience better/faster by putting some of the WebGUI components out on our CDN.  To do this, we changed the extras url to be an http url.  The problem is WebGUI is stripping the/a slash from the url so instead of http://blah.blah.blah.org it's rendering http:/blah.blah.blah.org and the JS is not working (in IE).  Firefox seems to compensate fro this problem.

Don B., on our team, found and fixed the problem by commenting out line 141 in Url.pm  in /lib/WebGUI/Session/

(below).  

Combinds the base extrasURL defined in the config file with a specfied path.

=head3 path

The path to the thing in the extras folder that you're referencing. Note that the leading / is not necessary.  Multiple consecutive slashes will be replaced with a single slash.

=cut

sub extras {
        my $self = shift;
        my $path = shift;
        my $url = $self->session->config->get("extrasURL").'/'.$path;
        #$url =~ s!/+!/!g;
        return $url;
}

#-------------------------------------------------------------------

 



Back to Top
Rate [
|
]
 
 
colink
Fixed in 7.4.17, but in a different way than the suggested patch.

Back to Top
Rate [
|
]