Summary: | "open link" doesn't open https urls | ||
---|---|---|---|
Product: | kword | Reporter: | Uri Shohet <ushohet> |
Component: | general | Assignee: | Thomas Zander <zander> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.5 or before | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Uri Shohet
2002-12-17 13:11:40 UTC
Subject: koffice/lib/kotext CVS commit by faure: Accept any valid URL in "open link" (e.g. https:// wasn't handled) CCMAIL: 52019-done@bugs.kde.org M +3 -4 kotextview.cc 1.103 --- koffice/lib/kotext/kotextview.cc #1.102:1.103 @@ -1090,8 +1090,7 @@ void KoTextView::slotToolActivated( cons void KoTextView::openLink() { - if(m_refLink.find("http://")!=-1 || m_refLink.find("mailto:")!=-1 - || m_refLink.find("ftp://")!=-1 || m_refLink.find("file:")!=-1 - || m_refLink.find("news:")!=-1) - (void) new KRun( m_refLink ); + KURL url( m_refLink ); + if( url.isValid() ) + (void) new KRun( url ); else KMessageBox::sorry(0L,i18n("%1 is not a valid link.").arg(m_refLink)); |