Public bug reported:

Recently, I've found that if a link contains something like an HTML
entity but without semicolon after it, it's interpreted as a valid HTML
entity and substituted with the corresponding symbol even in links. This
breaks some sites.

Steps to reproduce:
• Launch elinks and navigate to https://m.vk.com/ . Make sure that POST 
requests are sent with confirmation to see the URL they sent to. That is set by 
default.
• Enter whatever you want into “email” and “pass” fields.
• Hit Log in button at the page.

The POST form there has action URL that looks like
https://login.vk.com/?act=login&_origin=https://m.vk.com&ip_h=…&lg_h=…&role=pda&utf8=1

What actually happens:
• Despite that “&lg” has no semicolon at the end, it's being interpreted as ‘≶’ 
sign, and you'll see that in the POST request confirmation. This sign is only 
in the Unicode, so it's displayed as several other signs in different code 
pages. Anyway, this breaks the form. Checked with different terminals.

What is expected to happen:
• The sequence “&lg” is left as it is.

System Information:
• Ubuntu 14.04 LTS 64bit
• elinks 0.12~pre6-4ubuntu1 (the newest by now)

** Affects: elinks (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to elinks in Ubuntu.
https://bugs.launchpad.net/bugs/1561849

Title:
  HTML entities interpreted incorrectly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/elinks/+bug/1561849/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to