[Laszlo-dev] getLoadURLAsLzURL() and non-url-encoded strings
Scott Evans
gse at laszlosystems.com
Thu Nov 9 00:21:56 PST 2006
Ah, further -- the swf version includes the app name in the path.
The lzx version doesn't.
On Thu, 9 Nov 2006, Scott Evans wrote:
> <canvas proxied="false">
> <simplelayout axis="y"/>
> <text resize="true" text="${'path: ' + LzBrowser.getLoadURLAsLzURL().path}"/>
> <text resize="true" text="${'file: ' + LzBrowser.getLoadURLAsLzURL().file}"/>
> <text resize="true" text="${'host: ' + LzBrowser.getLoadURLAsLzURL().host}"/>
> </canvas>
>
>
> Try running this with an url like this:
> http://localhost:8080/lps-3.4.x/my-apps/a.lzx?foo=a/b&two=2
>
> Now run the SOLO swf:
> http://localhost:8080/lps-3.4.x/my-apps/a.lzx.swf?foo=a/b&two=2
>
> In the SOLO swf version, path = "/lps-3.4.x/my-apps/a.lzx.swf?foo=a/".
> Part of the URL query params ends up in the returned path. This doesn't
> happen if the slash is URL encoded, but in my app I don't have much
> control over that, and it seems reasonable to handle slashes in the query
> params.
>
> So ... is this expected behavior or a bug?
>
>
>
>
> gse
More information about the Laszlo-dev
mailing list