Index: trunk/extensions/SemanticMediaWiki/RELEASE-NOTES |
— | — | @@ -9,6 +9,7 @@ |
10 | 10 | production until the actual release. |
11 | 11 | |
12 | 12 | * Fixed display of nearby values on Special:SearchByProperty (bug 34178). |
| 13 | +* Fixed display of URL values (bug 34312, 34044). |
13 | 14 | |
14 | 15 | == SMW 1.7.0.2 == |
15 | 16 | |
Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_URI.php |
— | — | @@ -104,6 +104,10 @@ |
105 | 105 | /// NOTE: we do not support raw [ (%5D) and ] (%5E), although they are needed for ldap:// (but rarely in a wiki) |
106 | 106 | /// NOTE: "+" gets encoded, as it is interpreted as space by most browsers when part of a URL; |
107 | 107 | /// this prevents tel: from working directly, but we have a datatype for this anyway. |
| 108 | + |
| 109 | + if ( substr( $hierpart, 0, 2 ) === '//' ) { |
| 110 | + $hierpart = substr( $hierpart, 2 ); |
| 111 | + } |
108 | 112 | break; |
109 | 113 | case SMW_URI_MODE_TEL: |
110 | 114 | $scheme = 'tel'; |