aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-29 18:59:05 -0700
committerFriendika <info@friendika.com>2011-06-29 18:59:05 -0700
commitad5b976978011e2bf16fea5537af5b211e8e65eb (patch)
tree312714e2a62a8932efe24747e60d0c3f234f1810 /mod/photos.php
parentf73bc7f010e98b078542869cf130dc2c6d7abb25 (diff)
downloadvolse-hubzilla-ad5b976978011e2bf16fea5537af5b211e8e65eb.tar.gz
volse-hubzilla-ad5b976978011e2bf16fea5537af5b211e8e65eb.tar.bz2
volse-hubzilla-ad5b976978011e2bf16fea5537af5b211e8e65eb.zip
allow spaces in @ tags
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 2cd4e2622..187eb154c 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -380,6 +380,8 @@ function photos_post(&$a) {
if(count($tags)) {
foreach($tags as $tag) {
+ if(isset($profile))
+ unset($profile);
if(strpos($tag,'@') === 0) {
$name = substr($tag,1);
if((strpos($name,'@')) || (strpos($name,'http://'))) {
@@ -401,7 +403,7 @@ function photos_post(&$a) {
}
else {
$newname = $name;
- if(strstr($name,'_')) {
+ if(strstr($name,'_') || strstr($name,' ')) {
$newname = str_replace('_',' ',$name);
$r = q("SELECT * FROM `contact` WHERE `name` = '%s' AND `uid` = %d LIMIT 1",
dbesc($newname),