18 lines
360 B
Ruby
Executable File
18 lines
360 B
Ruby
Executable File
# encoding: UTF-8
|
|
|
|
require 'wp_plugin/vulnerable'
|
|
|
|
class WpPlugin < WpItem
|
|
include WpPlugin::Vulnerable
|
|
|
|
# Sets the @uri
|
|
#
|
|
# @param [ URI ] target_base_uri The URI of the wordpress blog
|
|
#
|
|
# @return [ void ]
|
|
def forge_uri(target_base_uri)
|
|
@uri = target_base_uri.merge(URI.encode(wp_plugins_dir + '/' + name + '/'))
|
|
end
|
|
|
|
end
|