https://bugzilla.wikimedia.org/show_bug.cgi?id=47059
Web browser: ---
Bug ID: 47059
Summary: Setting default value of form field to a URL results
in HTML markup in field value
Product: MediaWiki extensions
Version: REL1_20 branch
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: major
Priority: Unprioritized
Component: SemanticForms
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
Hi,
When doing the following:
{{{field |url |text |default=http://sdf.com?xxx=yyy&zzz=aaa |maxlength=3000
|mandatory}}}
and when loading the form, the form field value gets set to:
<a rel="nofollow" class="external free"
href="http://sdf.com?xxx=yyy&zzz=aaa">http://sdf.com?xxx=yyy&zzz=aaa</a>
instead of the proper unformatted value:
http://sdf.com?xxx=yyy&zzz=aaa
I tried wrapping the default value with <nowiki> but that doesn't work.
PLEASE NOTE: The description of how to reproduce above is just the most
isolated way. Realistically, I'm actually setting the default dynamically with
{{#urlget:...}} like so:
default={{#urldecode: {{#urlget:url}} }}
But, I removed the urlget, and urldecode, just to isolate the problem and
hard-coding the default to a URL produces the same problem exactly.
Thanks,
Al
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l