https://bugzilla.wikimedia.org/show_bug.cgi?id=67021
Bug ID: 67021
Summary: When an ISBN-10 should end in X yet ends in 0,
Special:BookSources treats it as valid
Product: MediaWiki
Version: 1.24-git
Hardware: All
URL: https://en.wikipedia.org/wiki/Special:BookSources/1413
30454X
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: Special pages
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
I noticed this when checking old TODOs and reading the code. It is a bug
arising in part from the use of PHP's loose equality (==) operator.
Steps to reproduce:
1. Open <https://en.wikipedia.org/wiki/Special:BookSources/1413304541>
2. Open <https://en.wikipedia.org/wiki/Special:BookSources/141330454X>
3. Open <https://en.wikipedia.org/wiki/Special:BookSources/1413304540>
Actual results: #1 gives, "The given ISBN does not appear to be valid; check
for errors copying from the original source." #2 and #3 give no error.
Expected results: both #1 and #2 should give that error message. Only #3 should
give no error.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l