mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-02 01:04:33 +03:00
nsurl: Add data to scheme type enum.
This commit is contained in:
parent
ca0514ea92
commit
bc280f0e3f
@ -302,6 +302,16 @@ static void nsurl__get_string_markers(const char * const url_s,
|
||||
((*(pos - off + 5) == 'o') ||
|
||||
(*(pos - off + 5) == 'O')))) {
|
||||
marker.scheme_type = NSURL_SCHEME_MAILTO;
|
||||
} else if (off == SLEN("data") &&
|
||||
(((*(pos - off + 0) == 'd') ||
|
||||
(*(pos - off + 0) == 'D')) &&
|
||||
((*(pos - off + 1) == 'a') ||
|
||||
(*(pos - off + 1) == 'A')) &&
|
||||
((*(pos - off + 2) == 't') ||
|
||||
(*(pos - off + 2) == 'T')) &&
|
||||
((*(pos - off + 3) == 'a') ||
|
||||
(*(pos - off + 3) == 'A')))) {
|
||||
marker.scheme_type = NSURL_SCHEME_DATA;
|
||||
}
|
||||
|
||||
/* Skip over colon */
|
||||
|
@ -36,7 +36,8 @@ enum nsurl_scheme_type {
|
||||
NSURL_SCHEME_HTTPS,
|
||||
NSURL_SCHEME_FILE,
|
||||
NSURL_SCHEME_FTP,
|
||||
NSURL_SCHEME_MAILTO
|
||||
NSURL_SCHEME_MAILTO,
|
||||
NSURL_SCHEME_DATA
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user