HomePhabricator

Improvements for T159405 - Used the wgUrlProtocols in validateURLField()

Authored by Fz-29 on Mar 21 2017, 2:09 PM.

Description

Improvements for T159405 - Used the wgUrlProtocols in validateURLField()

Now validateURLField() in libs/PageForms.js checks protocol part in URL using wgUrlProtocols variable, which is more complete.
Removed the comment "// code borrowed from http://snippets.dzone.com/posts/show/452" as the link appears to be broken.

Bug: T159405
Change-Id: I6b4fb4001334d753c5bc771089a2a56a56ddb03f