Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2455 closed defect (bug) (fixed)

bb-config creator should use single quotes for salt strings

Reported by: francescolaffi's profile francescolaffi Owned by:
Milestone: 1.2.5 Priority: normal
Severity: Version:
Component: Forums Keywords: dev-feedback has-patch
Cc: francesco.laffi@…

Description

right now it writes the bb-config file with salts in double quotes, that is bad because salts are random strings and can have $ in them, so they should not be interpreted

i.e. from my local testing installation

define('BB_AUTH_SALT', "^Dola{t1!k,RaEnLXq$h[C?b}.)~6YWl ]#(d|j+99IZZYhLPmQ:M%UGn_V8-8}@");

and I get a PHP Parse error: syntax error, unexpected '?', expecting ']' because of the $h[C? in the salt

attached diff fix it in 1.2 branch but the same solution is valid in trunk, it only changes change double quotes to single quotes around not to be interpreted strings

Attachments (1)

2455.diff (2.1 KB) - added by francescolaffi 14 years ago.

Download all attachments as: .zip

Change History (7)

@francescolaffi
14 years ago

#1 @cnorris23
14 years ago

Tested and it works. Good catch.

#2 follow-up: @DJPaul
14 years ago

Unfortunately this is not a BuddyPress bug. The path affects a BBPress file, which BuddyPress merely bundles with its distribution. You need to post this on the BBPress trac

#3 @DJPaul
14 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#4 in reply to: ↑ 2 @francescolaffi
14 years ago

  • Cc francesco.laffi@… added
  • Resolution invalid deleted
  • Status changed from closed to reopened

Replying to DJPaul:

Unfortunately this is not a BuddyPress bug. The path affects a BBPress file, which BuddyPress merely bundles with its distribution. You need to post this on the BBPress trac

ehm not really, actually the bb-config generation is done by buddypress, if you look the diff you'll see it only changes bp-forums-admin.php that is an actual buddypress file, not a bbpress one included with svn:externals

#5 @johnjamesjacoby
14 years ago

Confirmed. Got this error once about 8months ago and didn't have time to investigate. Will commit patch when at my computer next.

#6 @johnjamesjacoby
14 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [3073]) Fixes #2455 props francescolaffi

Note: See TracTickets for help on using tickets.