Re: Incorrect validation error?

22.4.2016, 7:59, Alan Bray wrote:

> The attached file shows an error when "-" (minus sign character) is used
> in an /href /URL.

The URL of the page is
http://windsongs.net/comparrangers.php
In future, please include the URL and/or relevant extract of code as 
text into the message.

The character “-” is HYPHEN-MINUS and different from “−” MINUS SIGN. But 
that’s not the point here. The point is that the error message is not 
about either of those characters. The error message is:

Error: Bad value 
http://www.tcm.com/this-month/article/133240|0/Alfred-Newman-Biography.html 
for attribute href on element a: Illegal character in path segment: | is 
not allowed.
 From line 109, column 5; to line 109, column 90
</li>↩<li><a 
href="http://www.tcm.com/this-month/article/133240|0/Alfred-Newman-Biography.html">↩Exten

(followed by a description of URL syntax).

So the offending character is “|” VERTICAL LINE (U+007C).

Replace it by its %-encoded form “%7C”.

Yucca

Received on Friday, 22 April 2016 13:43:18 UTC