Skip to content

Commit

Permalink
Extract username from Xing url won't work #1294
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Aug 3, 2022
1 parent 55ec81a commit f56e20f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adm_program/modules/profile/profile_save.php
Expand Up @@ -160,6 +160,10 @@
if (strrpos($_POST[$postId], '/posts') > 0) {
$_POST[$postId] = substr($_POST[$postId], 0, strrpos($_POST[$postId], '/posts'));
}
// xing has the suffix /cv in the url
if (strrpos($_POST[$postId], '/cv') > 0) {
$_POST[$postId] = substr($_POST[$postId], 0, strrpos($_POST[$postId], '/cv'));
}

$_POST[$postId] = substr($_POST[$postId], strrpos($_POST[$postId], '/') + 1);
if (strrpos($_POST[$postId], '?') > 0) {
Expand Down

0 comments on commit f56e20f

Please sign in to comment.