Menu

Issues with ~ in web document urls.

2014-11-28
2015-02-04
  • Greg Sacrey

    Greg Sacrey - 2014-11-28

    Hi folks,

    I am hoping someone can help me out. When creating web documents we have links to Igloo, our document repository. It has ~ in the url and the validation process in the web document creation prevents it from working.

    I have read about the url_validation_pattern initop-config.php file and have played around with various versions of the default found here

    https://wiki.openitop.org/doku.php?id=2_0_3:admin:itop_configuration_file&s[]=url&s[]=validation&s[]=pattern

    However with a URL like this one

    http://server.here.net/enter/cts/itpl/folders~3/end_user_services/asset_management/software_licensing_compliance/legal_agreements/netdocx~2

    The ~ are not allowing the url to be entered.

    How can I modify the original below to allow for ~ in the above url?

    Here is the original

    (https?,ftp)\://([a-zA-Z0-9+!*(),;?&=\$_.-]+(\:[a-zA-Z0-9+!*(),;?&=\$_.-]+)?@)?([a-zA-Z0-9-.]{3,})(\:[0-9]{2,5})?(/([a-zA-Z0-9%+\$_-].?)+)/?(\?[a-zA-Z+&\$_.-][a-zA-Z0-9;:[]@&%=+/\$_.-])?(#[a-zA-Z_.-][a-zA-Z0-9+\$_.-]*)?

    Any help would be appreciated.

     
  • Greg Sacrey

    Greg Sacrey - 2015-02-04

    Just an update to maybe help others. If you are having an issue with a URL try editing the file and placing this in the paramber.

    (http|https|ftp)://([\w-]+\.)+[\w-]+(/[\w- ./?%&=~#\[\]\(\)\'\!\$]*)?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.