fix path bs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6106 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-10-31 20:03:30 +00:00
parent 049d952d4e
commit e545da153e

View File

@ -675,7 +675,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
}
if (!strstr(file, SWITCH_URL_SEPARATOR)) {
if (prefix && *file != '/' && *file != '\\' && *(file + 1) != ':') {
if (switch_is_file_path(file)) {
char *new_file;
uint32_t len;
len = (uint32_t) strlen(file) + (uint32_t) strlen(prefix) + 10;