summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-12-11 14:15:32 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-12-11 14:15:32 (GMT)
commitea5650c7354d57a18ef245b48fdf4bc351524db6 (patch)
tree82947750d07a2e84683039a6ffe747e6d813c630 /src
parent979ea243de83a693e0d9da545ee4cbe7db9521ee (diff)
downloadDoxygen-ea5650c7354d57a18ef245b48fdf4bc351524db6.zip
Doxygen-ea5650c7354d57a18ef245b48fdf4bc351524db6.tar.gz
Doxygen-ea5650c7354d57a18ef245b48fdf4bc351524db6.tar.bz2
Incorrect specification of irc as URL protocol
- missing colon (`:`) at irc - adding irc, sftp and ftps
Diffstat (limited to 'src')
-rw-r--r--src/doctokenizer.l2
-rw-r--r--src/util.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index f756186..451201a 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -386,7 +386,7 @@ ATTRNAME [a-z_A-Z\x80-\xFF][:a-z_A-Z0-9\x80-\xFF\-]*
ATTRIB {ATTRNAME}{WS}*("="{WS}*(("\""[^\"]*"\"")|("'"[^\']*"'")|[^ \t\r\n'"><]+))?
URLCHAR [a-z_A-Z0-9\!\~\,\:\;\'\$\?\@\&\%\#\.\-\+\/\=]
URLMASK ({URLCHAR}+([({]{URLCHAR}*[)}])?)+
-URLPROTOCOL ("http:"|"https:"|"ftp:"|"file:"|"news:"|"irc")
+URLPROTOCOL ("http:"|"https:"|"ftp:"|"ftps:"|"sftp:"|"file:"|"news:"|"irc:"|"ircs:")
FILESCHAR [a-z_A-Z0-9\\:\\\/\-\+&#@]
FILEECHAR [a-z_A-Z0-9\-\+&#@]
HFILEMASK ("."{FILESCHAR}*{FILEECHAR}+)+
diff --git a/src/util.cpp b/src/util.cpp
index 74e5226..47ca215 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6686,7 +6686,8 @@ bool isURL(const QCString &url)
{
QCString loc_url = url.stripWhiteSpace();
return loc_url.left(5)=="http:" || loc_url.left(6)=="https:" ||
- loc_url.left(4)=="ftp:" || loc_url.left(5)=="file:";
+ loc_url.left(4)=="ftp:" || loc_url.left(5)=="ftps:" || loc_url.left(5)=="sftp:" ||
+ loc_url.left(5)=="file:";
}
/** Corrects URL \a url according to the relative path \a relPath.
* Returns the corrected URL. For absolute URLs no correction will be done.