r79728 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79727‎ | r79728 | r79729 >
Date:16:29, 6 January 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added 'rtsp' to set of allowed prefixes for URLs
Modified paths:
  • /trunk/extensions/SemanticForms/libs/SemanticForms.js (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/libs/SemanticForms.js
@@ -468,7 +468,7 @@
469469 jQuery.fn.validateURLField = function() {
470470 var fieldVal = this.find("input").val();
471471 // code borrowed from http://snippets.dzone.com/posts/show/452
472 - var url_regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
 472+ var url_regexp = /(ftp|http|https|rtsp):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
473473 if (fieldVal == "" || url_regexp.test(fieldVal)) {
474474 return true;
475475 } else {

Status & tagging log