mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 12:51:30 +00:00
owncloud: validate prefs value as an URL
This commit is contained in:
@@ -57,7 +57,7 @@ class OwnCloud extends Plugin {
|
|||||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"plugin\" value=\"owncloud\">";
|
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"plugin\" value=\"owncloud\">";
|
||||||
print "<table width=\"100%\" class=\"prefPrefsList\">";
|
print "<table width=\"100%\" class=\"prefPrefsList\">";
|
||||||
print "<tr><td width=\"40%\">".__("Owncloud url")."</td>";
|
print "<tr><td width=\"40%\">".__("Owncloud url")."</td>";
|
||||||
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" name=\"owncloud_url\" value=\"$value\"></td></tr>";
|
print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" name=\"owncloud_url\" regExp='^(http|https)://.*' value=\"$value\"></td></tr>";
|
||||||
print "</table>";
|
print "</table>";
|
||||||
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".__("Set value")."</button>";
|
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".__("Set value")."</button>";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user