mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°5027 AttributeUrl handle anchors starting with digits
This commit is contained in:
@@ -9,6 +9,6 @@ class AttributeURLDefaultPattern extends AttributeURL {
|
||||
{
|
||||
/** @noinspection OneTimeUseVariablesInspection */
|
||||
$oConfig = utils::GetConfig();
|
||||
return $oConfig->GetDefault('url_validation_pattern');
|
||||
return '^'.$oConfig->GetDefault('url_validation_pattern').'$';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ class AttributeURLTest extends ItopTestCase {
|
||||
'Sharepoint URL 2' => ['https://mydomain2.sharepoint.com/:u:/r/sites/DIS/ITSM/00_Admin_iTOP/iTop%20-%20Upgrade%20manuel/Procedure%20upgrade%20Combodo.url?csf=1&web=1&e=DAF0i3', 1],
|
||||
'Alfresco URL 2' => ['http://alfresco.mydomain3.org/share/page/site/books/document-details?nodeRef=workspace://SpacesStore/6274f55f-a25b-4762-a863-77f7066f2034', 1],
|
||||
'SF URL' => ['https://sourceforge.net/p/itop/discussion/customizing-itop/thread/707145b859/?limit=25#f53c', 1],
|
||||
'SF URL anchor starting with digit' => ['https://sourceforge.net/p/itop/discussion/customizing-itop/thread/b0a2d474ba/?limit=25#2b35', 1],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user