Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

a11ym fails on url special characters (&) #109

Open
jasonday opened this issue Aug 10, 2017 · 3 comments
Open

a11ym fails on url special characters (&) #109

jasonday opened this issue Aug 10, 2017 · 3 comments

Comments

@jasonday
Copy link

This issue requires encoding urls, which then outputs the report with encoded urls making the report less readable and less consumable for audiences.

I think it wuold be preferable to have T-A-M encode the urls and then decode them for the reports.

@Hywan
Copy link
Contributor

Hywan commented Aug 11, 2017

Hello :-),

Can you provide an example please?

cc @jeanmonod

@jasonday
Copy link
Author

This url fails in Windows PowerShell at the first &:

PS K:\> a11ym -m 1 -o test https
://url.com/jobs/intro?_ab_sessid=6f022ebc900f9cd04a6383f8eaab3c64&mobile=false&width=675&height=500&bga
=true&needsRedirect=false&jan1offset=-300&jun1offset=-240&in_iframe=1

At line:1 char:107
+ ... a6383f8eaab3c64&mobile=false&width=675&height=500&bga=true&needsRedirect=false&j ...
+                    ~
Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
At line:1 char:120
+ ... 64&mobile=false&width=675&height=500&bga=true&needsRedirect=false&jan1offset=-30 ...
+                    ~
Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
At line:1 char:130
+ ... false&width=675&height=500&bga=true&needsRedirect=false&jan1offset=-300&jun1offs ...
+                    ~
Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
At line:1 char:141
+ ... =675&height=500&bga=true&needsRedirect=false&jan1offset=-300&jun1offset=-240&in_ ...
+                    ~
Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
At line:1 char:150

@Hywan
Copy link
Contributor

Hywan commented Aug 12, 2017

What if you add single quote around the URL?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants