Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
9031f167
Commit
9031f167
authored
7 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
fix: don't run system commands on iOS
Change-Id: I12eabe030e084a274e4774ff1314d129323cf8bd
parent
df0a8fe1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hooks/urlhook.cpp
+5
-4
5 additions, 4 deletions
src/hooks/urlhook.cpp
with
5 additions
and
4 deletions
src/hooks/urlhook.cpp
+
5
−
4
View file @
9031f167
...
...
@@ -28,10 +28,11 @@ int UrlHook::runAction(const std::string &command, const std::string &args)
//FIXME : use fork and execve, so no need to escape shell arguments
const
std
::
string
cmd
=
command
+
(
args
.
empty
()
?
""
:
" "
)
+
"
\"
"
+
args
+
"
\"
&"
;
#ifndef RING_UWP
return
system
(
cmd
.
c_str
());
#else
#if defined(RING_UWP) || defined(TARGET_OS_IOS)
return
0
;
#else
return
system
(
cmd
.
c_str
());
#endif
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment