Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
892f3cf9
Commit
892f3cf9
authored
Mar 24, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix windows browser bug: first directory or filename character was removed.
parent
44e5326d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
share/http/js/functions.js
share/http/js/functions.js
+4
-4
No files found.
share/http/js/functions.js
View file @
892f3cf9
...
...
@@ -235,7 +235,7 @@ function check_and_replace_int( id, val )
}
function
addslashes
(
str
){
return
str
.
replace
(
/
\'
/g
,
'
\\\'
'
);
}
function
escapebackslashes
(
str
){
return
str
.
replace
(
/
\\
[^
'
]
/g
,
'
\\\\
'
);
}
function
escapebackslashes
(
str
){
return
str
.
replace
(
/
\\
/g
,
'
\\\\
'
);
}
function
toCamelCase
(
str
)
{
...
...
@@ -656,11 +656,11 @@ function parse_browse_dir( )
setclass
(
item
,
'
browser
'
);
if
(
elt
.
getAttribute
(
'
type
'
)
==
'
directory
'
)
{
item
.
setAttribute
(
'
href
'
,
'
javascript:browse_dir(
\'
'
+
escapebackslashes
(
add
slashes
(
elt
.
getAttribute
(
'
path
'
)))
+
'
\'
);
'
);
item
.
setAttribute
(
'
href
'
,
'
javascript:browse_dir(
\'
'
+
addslashes
(
escapeback
slashes
(
elt
.
getAttribute
(
'
path
'
)))
+
'
\'
);
'
);
}
else
{
item
.
setAttribute
(
'
href
'
,
'
javascript:browse_path(
\'
'
+
escapebackslashes
(
add
slashes
(
elt
.
getAttribute
(
'
path
'
)))
+
'
\'
);
'
);
item
.
setAttribute
(
'
href
'
,
'
javascript:browse_path(
\'
'
+
addslashes
(
escapeback
slashes
(
elt
.
getAttribute
(
'
path
'
)))
+
'
\'
);
'
);
}
item
.
appendChild
(
document
.
createTextNode
(
elt
.
getAttribute
(
'
name
'
)
)
);
pos
.
appendChild
(
item
);
...
...
@@ -669,7 +669,7 @@ function parse_browse_dir( )
pos
.
appendChild
(
document
.
createTextNode
(
'
'
)
);
var
item
=
document
.
createElement
(
"
a
"
);
setclass
(
item
,
'
browser
'
);
item
.
setAttribute
(
'
href
'
,
'
javascript:browse_path(
\'
'
+
escapebackslashes
(
add
slashes
(
elt
.
getAttribute
(
'
path
'
)))
+
'
\'
);
'
);
item
.
setAttribute
(
'
href
'
,
'
javascript:browse_path(
\'
'
+
addslashes
(
escapeback
slashes
(
elt
.
getAttribute
(
'
path
'
)))
+
'
\'
);
'
);
item
.
appendChild
(
document
.
createTextNode
(
'
(select)
'
)
);
pos
.
appendChild
(
item
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment