summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/templates
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-06-18 13:00:50 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-06-18 13:00:50 +0200
commitf9093466bf2230edde9a4e8156101dc9558968c5 (patch)
tree92df0e38f470831e3558b910472d7e61459d79cb /apps/files_sharing/templates
parentb43bfaf132b8457768785a5ef5165a1227273140 (diff)
downloadnextcloud-server-f9093466bf2230edde9a4e8156101dc9558968c5.tar.gz
nextcloud-server-f9093466bf2230edde9a4e8156101dc9558968c5.zip
add id to url
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r--apps/files_sharing/templates/settings-personal.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/templates/settings-personal.php b/apps/files_sharing/templates/settings-personal.php
index bc10da5583b..ee761ff5897 100644
--- a/apps/files_sharing/templates/settings-personal.php
+++ b/apps/files_sharing/templates/settings-personal.php
@@ -21,14 +21,14 @@ style('files_sharing', '3rdparty/gs-share/style');
<p>
<?php p($l->t('Share it:')); ?>
<div class="gs-share">
- <button data-url="<?php p($_['reference']); ?>"
+ <button data-url="<?php p(urlencode($_['reference'])); ?>"
data-title='<?php p(urlencode($_['message_without_URL'])); ?>'
class='js-gs-share social-gnu'>
GNU Social
</button>
</div>
<button class="social-diaspora pop-up"
- data-url='http://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p($_['reference']); ?>'>
+ data-url='http://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p(urlencode($_['reference'])); ?>'>
Diaspora
</button>
<button class="social-twitter pop-up"
@@ -36,11 +36,11 @@ style('files_sharing', '3rdparty/gs-share/style');
Twitter
</button>
<button class="social-facebook pop-up"
- data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p($_['reference']); ?>'>
+ data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p(urlencode($_['reference'])); ?>'>
Facebook
</button>
<button class="social-googleplus pop-up"
- data-url='https://plus.google.com/share?url=<?php p($_['reference']); ?>'/>
+ data-url='https://plus.google.com/share?url=<?php p(urlencode($_['reference'])); ?>'/>
Google+
</button>
</p>