mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Used dir_sep instead of hard coded '/'
This commit is contained in:
parent
a35307f85a
commit
2d9e28bd68
@ -16,6 +16,7 @@
|
||||
#include "ecmascript/spidermonkey.h"
|
||||
#include "intl/gettext/libintl.h"
|
||||
#include "main/module.h"
|
||||
#include "osdep/osdep.h"
|
||||
#include "protocol/protocol.h"
|
||||
#include "protocol/uri.h"
|
||||
#include "session/session.h"
|
||||
@ -274,7 +275,7 @@ ecmascript_set_action(unsigned char **action, unsigned char *string)
|
||||
done_uri(protocol);
|
||||
mem_free_set(action, string);
|
||||
} else {
|
||||
if (string[0] == '/') { /* absolute uri */
|
||||
if (dir_sep(string[0])) { /* absolute uri, TODO: disk drive under WIN32 */
|
||||
struct uri *uri = get_uri(*action, URI_HTTP_REFERRER_HOST);
|
||||
|
||||
if (uri->protocol == PROTOCOL_FILE) {
|
||||
|
Loading…
Reference in New Issue
Block a user