Bug 131685 - [testcase] Redirecting to wrong page if XML entity & used in URLs
Summary: [testcase] Redirecting to wrong page if XML entity & used in URLs
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-01 22:04 UTC by Stefan Braune
Modified: 2021-03-21 00:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
the test file (118 bytes, text/xml)
2008-06-04 17:16 UTC, Jaime Torres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Braune 2006-08-01 22:04:19 UTC
Version:            (using KDE KDE 3.5.3)
Installed from:    Gentoo Packages
OS:                Linux

Hi there,

if i write a tiny JavaScript into a xml file, something like this:

<script type="text/javascript">
window.setTimeout("window.location.href = 'foo.php?&#38;bar=baz'", 3000);
</script>

It doesn't redirect me to foo.php?&bar=baz, it redirects me to foo.php?&#38;bar=baz and the script can't interprete the argument anymore correct.. Other browsers show me the correct result and redirect me with an understandable URL for the script..
If i use only & instead of the entity in the JS, XML will show me an parsing error in other browser like firefox. My error or an error in khtml/kjs?

Sorry for my bad english.. :(

Bye bye!
Comment 1 Maksim Orlovich 2008-03-12 18:12:04 UTC
What mimetype are you serving the page as?
Comment 2 Michael Zanetti 2008-04-20 22:45:37 UTC
Please provide a small script with that problem as testcase.
Comment 3 Jaime Torres 2008-06-04 17:16:07 UTC
Created attachment 25121 [details]
the test file
Comment 4 Justin Zobel 2021-03-21 00:25:34 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.