Bug 131685

Summary: [testcase] Redirecting to wrong page if XML entity & used in URLs
Product: [Applications] konqueror Reporter: Stefan Braune <silencer>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: the test file

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.